Trigger requests based on conditions #1075
Unanswered
ClausClaus
asked this question in
General
Replies: 1 comment
-
This might help https://react-query.tanstack.com/docs/guides/queries#dependent-queries. Use the |
Beta Was this translation helpful? Give feedback.
0 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.
-
👋Hello! I found that this library defines the request configuration at the top of the component in a declarative way. I would like to ask, if I have a pop-up window, I want to initiate the request and load the data after opening the pop-up window. This can be configured in useEffect. Monitor the visible variable of the pop-up window to achieve the goal, but what to do in useQuery! I need help, hope someone can tell me, I apologize for the inconvenience caused to you 🙏...
Beta Was this translation helpful? Give feedback.
All reactions