Looking for a way to understand caching status of responses. When a request is made with 'useQueryand we get a response with data, what is the recommended way to infer where the data came from - was it fully or partially from cache or was a request made over the network? Right now, I am using the values ofisLoadinganddata` in conjunction to make an assumption but would like to know if there are cleaner/more accurate ways to get this information.
Looking for a way to understand caching status of responses. When a request is made with 'useQuery
and we get a response with data, what is the recommended way to infer where the data came from - was it fully or partially from cache or was a request made over the network? Right now, I am using the values of
isLoadingand
data` in conjunction to make an assumption but would like to know if there are cleaner/more accurate ways to get this information.