Skip to content
Discussion options

You must be logged in to vote

the object returned from useMutation is not referentially stable, but mutateAsync itself is:

const { mutateAsync } = useMutation(...)

useEffect(() => {
   mutateAsync()
}, [mutateAsync])

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@arashi-dev
Comment options

@Zerebokep
Comment options

@TkDodo
Comment options

Answer selected by arashi-dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants