Skip to content

Sync Issue with multiple users #1542

Answered by doobe01
doobe01 asked this question in Q&A
Discussion options

You must be logged in to vote

I ended up creating my own lastPulledAt date. Initially set lastPulledAt as 0 for every user. Then updated this value and stored it in react-native-mmkv as an array of objects. [{id: "1", lastPulledAt: "12129323232"}]. Grabbed lastPulledAt from storage, sync by passing this date, then updating lastPulledAt with Date.now(). Then storing back to mmkv storage. Seems to work great.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by doobe01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant