Skip to content

Accessing useQuery inputs in a msw handler #2238

Closed Answered by kettanaito
sibteali786 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi. You access those values from the same place where they are being set in your useQuery hook.

It can be either query parameters or in the request body. Consult your request library's docs to learn where the count and timeframe values are being set.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by kettanaito
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants