Offline Storage: Fix scrolling issue
dotNetkow opened this issue · comments
-
Load the app on an iOS device - this branch.
-
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.
-
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).
-
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.