You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 11, 2023. It is now read-only.
Right now, localsynccreate does some things differently depending on the add and merge options. Should it be? Localsync should probably emulate/mirror the server response, and not care what options are passed to fetch and subsequently set.
Often when using add: true or merge: true with fetch, you're dealing with an API endpoint that does not return a full result set.
The text was updated successfully, but these errors were encountered:
I have sync scenarios like this:
A) client contact the server via API, looking for updates since last call;
B) user works on client, locally, later saves data via API on server;
C) in next call to API from any client ONLY new data since last call will be downloaded.
From any client:
By first call client get all records from server (~7000 recs)
By second call client get all records modified, added, deleted since 1 (# recs << 7000)
The problem
With dualStorage the localStorage saves only records in call 2 - clearing all data from call 1, is there a way to merge partial set in the second call with the - already saved locally - first big set?
Right now,
localsync
create
does some things differently depending on theadd
andmerge
options. Should it be? Localsync should probably emulate/mirror the server response, and not care what options are passed tofetch
and subsequentlyset
.Often when using
add: true
ormerge: true
withfetch
, you're dealing with an API endpoint that does not return a full result set.The text was updated successfully, but these errors were encountered: