Open tobiaskkd opened 1 year ago
Hi @tobiaskkd 👋 thanks for raising this issue. While we reproduce this issue, we noticed that you are using the SQLite adapter and that the package version is a little behind the current version. Do you mind upgrading it and letting us know if it makes a difference in the behavior you're seeing?
@aws-amplify/datastore-storage-adapter: ^2.0.9 => 2.0.31
Hi @tobiaskkd 👋 thanks for raising this issue. While we reproduce this issue, we noticed that you are using the SQLite adapter and that the package version is a little behind the current version. Do you mind upgrading it and letting us know if it makes a difference in the behavior you're seeing?
@aws-amplify/datastore-storage-adapter: ^2.0.9 => 2.0.31
Hi @chrisbonifacio
Thanks for your feedback! I upgraded the package to @aws-amplify/datastore-storage-adapter@^2.0.36 but unfortunately it did not make any change. BR Tobias
Facing the same issue frequently even in amplify version 4.3.14
Just unassigned this from me so that this can be picked up for reproduction (cc @chrisbonifacio)
Before opening, please confirm:
JavaScript Framework
React Native
Amplify APIs
DataStore
Amplify Categories
api
Environment information
Describe the bug
When launcing our app we are waiting for DataStore to finish syncing before rendering the content to keep the JS Thread clear. To do so we are waiting for the 'ready'-event to be emitted from DataStore. It works perfectly fine on iOS. However, the event is emitted before 'syncQueriesReady' on Android after around 80 ms. As a result the sync takes up to 1 minute on Android and rendering the content takes even longer since it is dependant on the data from DataStore.
Expected behavior
According to the Amplify DataStore documentation the 'ready'-event should be emitted after the 'syncQueriesReady'-event. Namely when DataStore as a whole is ready. From documentation: "Dispatched when DataStore as a whole is ready, at this point all data is available".
Reproduction steps
Code Snippet
Log output
aws-exports.js
Manual configuration
Additional configuration
No response
Mobile Device
Google Pixel 7
Mobile Operating System
Android 13
Mobile Browser
No response
Mobile Browser Version
No response
Additional information and screenshots
No response