Skip to content

Dependent mutations? enabled missing? #1327

Answered by TkDodo
danactive asked this question in Q&A
Discussion options

You must be logged in to vote

useMutation returns a mutate function. The mutation will only run when you call that function, e.g. on a button click. That is fundamentally different from useQuery. If you want to wait for a condition to be met, just call the function after that :)

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@teahan-nguyen
Comment options

@TkDodo
Comment options

@debo07
Comment options

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