-
Notifications
You must be signed in to change notification settings - Fork 4
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
On initial app launch, data does not load to UI when it is received #35
Comments
It may be true that even subsequent launches of the app are only getting the data from the previous API call that was previously written to the database. |
Perhaps a way to debug this is to (temporarily) display a timestamp for when the data was fetched. We may have to add that to the database model if that's not something we already have in place. |
I actually think a "Last updated" datetime would be pretty sweet to show anyways FWIW |
Something is awry with how the LiveData is set up. The goal was for any updates to the database to then be pushed to the UI; however, this isn't working as hoped. We'll need to figure out the problem or go in a different direction (re-architect how the UI is prompted to update). If the issue with the existing LiveData cannot be resolved, then perhaps we implement a repository class that explicitly manages this for us.
The text was updated successfully, but these errors were encountered: