Skip to content
Discussion options

You must be logged in to vote

Ok, i have found my mistake (after too many hours on this).
If you wrap your app like this with trpc + query

<trpc.Provider client={trpcClient} queryClient={queryClient}>
  <App/>
</trpc.Provider>

(so forgetting to wrap a second time with <QueryClientProvider client={queryClient}>
It will seems to work. You won't receive any error message. queries will run, invalidate, rerun when invalidated or remounted. But not refetch on refocus.
I will see that with them, thank you.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@vjau
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by vjau
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants