Skip to content

How to sync local changes during offline when the connection is re-established? #1

@hongscave

Description

@hongscave

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!

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions