eslint error when I don't pass mutation to useEffect dependency #3566
Answered
by
TkDodo
arashi-dev
asked this question in
Q&A
-
Hello. const createProduct = useMutation(...)
useEffect(() => {
createProduct.mutateAsync()
}, []) ESlint gives me warning that I should specify Edit: |
Beta Was this translation helpful? Give feedback.
Answered by
TkDodo
Apr 30, 2022
Replies: 1 comment 3 replies
-
the object returned from
|
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
arashi-dev
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
the object returned from
useMutation
is not referentially stable, butmutateAsync
itself is: