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

Lazy load bills #34

Closed
magnetism2000 opened this issue Apr 20, 2020 · 1 comment
Closed

Lazy load bills #34

magnetism2000 opened this issue Apr 20, 2020 · 1 comment

Comments

@magnetism2000
Copy link
Contributor

We need a way to lazy load bills/issues on the all_bills_view.dart / all_issues_view.dart

Why:
There are way too many bills to show on the view at once and has huge performance issues. I think the sweet spot for my device(s10) is around 20-30 bills painted on the view at once without any performance issues. Older devices might be worse.

Possible ways:

  • Add cursor to api request and recall endpoint once page is scrolled to certain point
  • Store all Bills in local storage state, then call from local storage adding them to the Bill list progressively. Then call the api once per day, or on app bootup.
@KipCrossing
Copy link
Member

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