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

Implement automatic screen refresh for active tab to improve user experience without excessive resource usage #5

Open
ccahsh opened this issue Jul 11, 2023 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@ccahsh
Copy link
Member

ccahsh commented Jul 11, 2023

Right now, users have to press the red circly arrow button to refresh their screen, and thus see the updated reports. But this may undermine UX, so we may need a solution for this w/o exhausting resources.

For example, the app can refresh itself once per minute ONLY when it is in the active tab. That way, it doesn't need to call Firebase when it's in the background tab.

Or snapshotlistener can be implemented instead as discussed in Discord.

@ccahsh ccahsh added enhancement New feature or request help wanted Extra attention is needed labels Jul 11, 2023
@ccahsh ccahsh moved this to Todo in Work List for SIMPLE Jul 12, 2023
@Mcrich23
Copy link
Collaborator

I think a snapshot listener should be implemented. But we need to keep the refresh (in case a user wants to manually refresh) that make a standard get request to firebase

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
Development

No branches or pull requests

2 participants