Add react-query and use it for common fetch methods #186
Labels
chakra-components
Things related to the chakra-components package
enhancement
New feature or request
react-providers
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).
The text was updated successfully, but these errors were encountered: