ionic-team / ionifits

Human Resources demo app (Zenefits clone) serving as a reference for enterprise app developers on the Ionic stack.

Home Page:https://ionifits.ionic.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Offline Storage: Fix scrolling issue

dotNetkow opened this issue · comments

  1. Load the app on an iOS device - this branch.

  2. I'm now loading the same Employee data from data/EmployeeData.ts into a Couchbase Lite database, then the app does searching/filtering from CBL.

  3. Issue is with scrolling: I've hacked the search results a bit to display results from CBL. Only 200 results currently, since trying to load all the Emp data (thousands of records) crashes the app (the native team likely needs to implement database Batching - i've informed them).

  4. when you apply filters, search etc then scroll up, eventually the data reverts back to the original Employee data. Goal is to keep the new data.

If this is an issue only because i'm using 200 records instead of the full amount, then that's fine - we'll hold off on changing anything and just not ship the PR right now.