TanStackT
TanStack2y ago
4 replies
sad-indigo

Query refetches when page is refreshed even if refetchOnMount is false.

I switched to typescript recently. I applied the same configs with my old project to my new project but it is not working like the old one. In the old one projects are not refetched even if I refresh the page so project selection combobox doesn't flicker when page is refreshed but now it is refetching.

Note: I was using keepPreviousData: truein my old project but I gues it is deprecated.
Screenshot_2024-01-21_at_01.36.25.png
Was this page helpful?