State Management · Middle · Question 30 of 75

How do you run a query only after another one returned user.id?

Explanation

While enabled is false the query doesn't run. Calling hooks conditionally breaks the rules of hooks. user.id must also be part of the dependent query's key.

Further reading

Problem with a question

State Management · Middle · question 30

Test yourself

Take the State Management · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz