-
I'm considering switching from using react-query with code-gen to However I have quite a lot of waterfall queries I need to make. (I don't have control over the backend to do relationships in graphQL). So I have to do it on the frontend for this project. In const { data: idFromDatabase } = useQuery({ ... })
const { data: actualDataINeed } = useQuery({ ..., variables: { id: idFromDatabase }, enabled: !!idFromDatabase }) In this case, the first query will run when the component loads, but the second query will NOT run because When the first query is resolved, I know in gqty, I could achieve this with a Is there nothing like this in |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
See my comment below. |
Beta Was this translation helpful? Give feedback.
useQuery
has noenable
orskip
options, and in fact you don't need to.See my comment below.