Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Amplify.DataStore first run sync problem. A lot of sync requests and 0 items #2

Open
yurydemin opened this issue May 31, 2021 · 0 comments

Comments

@yurydemin
Copy link

Hello, Kilo, thanks for your projects and great tutorials.
I have found interesting situation with DataStore when running flutter app at first time (clear app, without cache).
E.g look at the todos project. After config plugins, todos bloc starting with getTodos and observeTodos.
So at the first request (DataStore.query(Todo.classType)) DataStore starting sync process, sending some sync requests and return 0 todo items! After that observer starting its requests again and again to get all data correct.
Its happening just at the first launch after installing app. The second one and other - OK, like already syncing and first request return correct amount of items.

Maybe it is nesseccary to check datastore sync after plugins setup or smth else?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant