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

Use caching instead of polling in HistoryList #1412

Open
sabina-talipova opened this issue Oct 17, 2023 · 0 comments
Open

Use caching instead of polling in HistoryList #1412

sabina-talipova opened this issue Oct 17, 2023 · 0 comments

Comments

@sabina-talipova
Copy link
Contributor

Description

To determine if the history list requires a refresh we send request every 250 ms in refreshHistoryIfNeeded.

This needs a delay/throttle, so this api request tries to be made last in the stack. We also use this to stop an API call happening if the component is going to unmount soon.

This could potentially be solved by using apollo-client's caching and graphql.
See:

* TODO: This could potentially be solved by using apollo-client's caching and graphql.

@GuySartorelli GuySartorelli changed the title TODO: Investigate the potential improvements for HistoryList Use caching instead of polling in HistoryList Oct 25, 2023
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