What is the queryOptions in the useSelect() used for? #1656
Answered
by
omeraplak
BenGardiner123
asked this question in
Q&A
-
As per the title, it's not entirely clear to me what it does or what it could be useful for? |
Beta Was this translation helpful? Give feedback.
Answered by
omeraplak
Mar 21, 2022
Replies: 1 comment
-
Hey @BenGardiner123 , You can use React Query's options with queryOptions. For example,
or if you want to use polling,
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
omeraplak
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey @BenGardiner123 ,
Thank you for contact with us. Refine uses react query to manage state management.
You can use React Query's options with queryOptions.
For example,
If you want to make useSelect wait until a condition is met,
or if you want to use polling,