Replies: 1 comment
-
For updating something, you should |
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi guys,
Suppose I have to perform an API fetching and I want to do that with
useQuery
, but the problem is that it's causing the component to re-render again.there is an option to use
useQuery
but without this re-render?I'll give an example, after all the business logic ended I need to perform request to the server to update something in the DB, after that action was finished I don't need to do anything in the component and the component shouldn't re-render, but if I am using
useQuery
it will.Thanks all!
Beta Was this translation helpful? Give feedback.
All reactions