useQuery: running function on error #7921
Unanswered
ibrahim-ytl
asked this question in
General
Replies: 1 comment
-
depends on what the function does ... |
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
-
Hi I have a question to ask. Is it recommended to run the function directly without useEffect upon useQuery return error?
Here is the example code:
or it is recommended to run the function inside
useEffect
?:Which one is the recomended way?
Beta Was this translation helpful? Give feedback.
All reactions