Lift-off part 3 UseQuery hook - Question answers are confusing

This question is regarding the section #8 THE USEQUERY HOOK - WITH VARIABLES in the odyssey part3 lesson. I have tried answering the question with the following inputs.

I was wondering if this is indeed working as expected or a bug in the quiz solutions.

I think I have answered correctly. But the correct answer as suggested by the lesson is -

To set variables in our query, we declare them in the second parameter of the useQuery hook

Hi @Sridatta19 ! Thanks for sharing your experience with this quiz!

The quiz answers are correct. The second parameter of the useQuery hook is an options object where we can set variables for the query.

I can see how the question is worded can cause confusion however, so we’ll look into rewording this for better clarity. Thank you!

1 Like