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).
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).