Closed halindraprakoso closed 2 years ago
Hello,
I tried to run a simple query:
const url = 'https://jsonplaceholder.typicode.com/users'; const queryResult = useQuery('users', () => fetch(url).then((res) => res.json()))
But everytime I reload or switch page back and forth, the data looks to be refetched everytime. On the devtools network tab I'm expecting (disk cache) being used, but it doesn't.
I tried:
refetchOnWindowFocus: false, refetchOnMount: false, refetchOnReconnect: false, retry: false, staleTime: 3600000, refetchInterval: 3000000
am I missing something?
Hello,
I tried to run a simple query:
But everytime I reload or switch page back and forth, the data looks to be refetched everytime. On the devtools network tab I'm expecting (disk cache) being used, but it doesn't.
I tried:
am I missing something?