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

On initial app launch, data does not load to UI when it is received #35

Open
timmiller17 opened this issue Oct 27, 2021 · 3 comments
Open

Comments

@timmiller17
Copy link
Collaborator

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.

@timmiller17
Copy link
Collaborator Author

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.

@timmiller17
Copy link
Collaborator Author

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.

@rorpage
Copy link
Owner

rorpage commented Oct 27, 2021

I actually think a "Last updated" datetime would be pretty sweet to show anyways FWIW

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

No branches or pull requests

2 participants