zed
CCConvex Community
•Created by zed on 3/5/2025 in #support-community
🤔 Forcing a Refresh in TanStack Query with Convex: How to Do It?
I followed the docs and set up basic queries successfully. I created a few queries, but I need to force a refetch. I tried
queryClient.invalidateQueries
, queryClient.refetchQueries
, and refetch
, but none of them are working to refetch the Convex query function. Any suggestions?
https://docs.convex.dev/client/tanstack-query#:~:text=TanStack%20Query%20is%20an%20excellent,for%20use%20with%20TanStack%20Query.3 replies