cybroidtech / cybroidtech/appwrite_offline
How to sync local changes during offline when the connection is re-established?
- Dominant language
- Dart
- Stars
- 11
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Description
Thanks for making this library!
I've been trying out this library with this example.
And I've reached a point where during offline, the changes I made locally is not synced when the connection is re-established.
I can tell because the product id is not assigned if it is created offline.
I made sure syncLocal is true.
` final productsState = ref.products.watchAll(
syncLocal: true
); `
and I tried:
// this action only overwrites my local state with server state
`await ref.products.appwriteAdapter.findAll(syncLocal: true);`
How do I perform such action? Does this package provide this feature?
I do see there's a merge function, is that the one? Can you show me how it works?
Many thanks!
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.