-
Hello,
What is the correct approach here? |
Beta Was this translation helpful? Give feedback.
Answered by
TkDodo
Jun 13, 2022
Replies: 1 comment 2 replies
-
given that you manage the data from the external library within react (e.g. useState, some global client state manager, or even react-query if that data comes from an api call), the best way is to set
|
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
Gilthans
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
given that you manage the data from the external library within react (e.g. useState, some global client state manager, or even react-query if that data comes from an api call), the best way is to set
enabled
to a dynamic value, so that the query then enables automatically once the data comes in. So you're really looking at a standard dependent query: