Completely disable cache between two pages.
I just found this thread: https://discord.com/channels/719702312431386674/1003327027849474198/1064541918186442763
So looks like since v4, the behaviour is do not refetch even we set
But I want to disable a cache completely, When components mount and unmount, the query should refetch. I also set
Btw. the AI on the doc website still gives deprecated
So looks like since v4, the behaviour is do not refetch even we set
gcTime (cacheTime before v5) to 0.But I want to disable a cache completely, When components mount and unmount, the query should refetch. I also set
staleTime to 0 but it's sitll no working. Any suggestions?Btw. the AI on the doc website still gives deprecated
cacheTime property. (pic)