preFetchQuery data isn't being used
I'm doing a prefetch of data in a client side component and then query the same key in a click interaction, but this seems to fetch the same data again, according to the browser's network activity.
After both fetches, the React Query devtools show that key as 'inactive'. I can see the state go from inactive to fetching on click and then on any subsequent, it's clearly accessing the cache.
How would I debug this further?
After both fetches, the React Query devtools show that key as 'inactive'. I can see the state go from inactive to fetching on click and then on any subsequent, it's clearly accessing the cache.
How would I debug this further?