Datastore returning old version on app startup and then shortly updating #13269
Labels
DataStore
Related to DataStore category
React Native
React Native related issue
to-be-reproduced
Used in order for Amplify to reproduce said issue
Before opening, please confirm:
JavaScript Framework
React Native
Amplify APIs
DataStore
Amplify Version
v6
Amplify Categories
No response
Backend
Amplify CLI
Environment information
Describe the bug
When I update a model record locally in the app and then I reload(in development) or close and open the app(in release) the app, the datastore returns an older version of the record and then updates to the latest version.
Expected behavior
The expected behavior is that when I reload the app or open it from a closed state the record version I should receive immediately should be at least the same version that I had before I did the reload/closed the app since the records are persisted.
Reproduction steps
Check here the screen recording:
Screen.Recording.2024-04-19.at.10.22.20.AM.mov
Notice that every time I reload the app I get a version older but in the last one I got a way old version
The text was updated successfully, but these errors were encountered: