Always fetch
#2784
Replies: 1 comment 2 replies
-
Disable the query when the menu is closed and enable it again when the menu opens. Alternatively, make the menu mount / unmount because that should also trigger a refetch. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a way to always fetch. I tried setting staleTime to 0 and cache time to 0.
My use case is... I have a drop-down menu that is populated with data from the server. I want to fetch this every time the drop-down menu is open. I use queryClient.fetchQuery.
Thanks
Anand
Beta Was this translation helpful? Give feedback.
All reactions