How to have dependency array in generated react hooks (typescript-urql) #7387
Unanswered
karthickthankyou
asked this question in
Q&A
Replies: 1 comment
-
|
you can work around with memorized variables const variables = useMemo(()=>({variables:{search:inputValue}}),[inputValue])
const [] = useSearchCititesQuery({variables: variables}) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have the hook below that currently runs on every rerender. How can I make it run only when
inputValuechanges.The generated code looks like below.
Please ask if the above question has insufficient information to help.
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions