Refetch query externally when the query was created with enabled: false. #804
Answered
by
wolverineks
LuisCarrilloR
asked this question in
General
-
I want to refetch a query that is in another context after some actions. The query is declared this way:
But when I want to trigger the refetch it doesn't work.
Any suggestions how to handle this problem? |
Beta Was this translation helpful? Give feedback.
Answered by
wolverineks
Jul 30, 2020
Replies: 1 comment 6 replies
-
could you provide a working example on codesandbox.io? |
Beta Was this translation helpful? Give feedback.
6 replies
Answer selected by
LuisCarrilloR
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
could you provide a working example on codesandbox.io?
a good place to start
https://codesandbox.io/s/react-query-starter-8i7vb?file=/src/App.tsx