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

Add react-query and use it for common fetch methods #186

Open
elboletaire opened this issue Jul 1, 2024 · 0 comments
Open

Add react-query and use it for common fetch methods #186

elboletaire opened this issue Jul 1, 2024 · 0 comments
Labels
chakra-components Things related to the chakra-components package enhancement New feature or request react-providers

Comments

@elboletaire
Copy link
Member

Creating the new explorer I've realized having some kind of cache in the fetching methods (like fetch election) would reduce a lot the api calls, giving a better user experience too, since it does not need to refetch already fetched info.

At least the fetch election method should be considered to be added as a react query, but others like the fetch census could be considered as well (with lots of keys in the query key to ensure it properly clears cache on any change).

@elboletaire elboletaire added enhancement New feature or request chakra-components Things related to the chakra-components package react-providers labels Jul 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chakra-components Things related to the chakra-components package enhancement New feature or request react-providers
Projects
None yet
Development

No branches or pull requests

1 participant