Skip to content
Discussion options

You must be logged in to vote

I'm not against this, and it's not too hard to do, but I don't fully understand the value yet. This assumes that the query and mutation live in the same component, which imo is rarely the case. For example, the mutation can live in a dialog while the list that renders the query lives in a separate component.

So we would need a way to expose the input not only as a returned value from useMutation, but maybe also generally via another hook, similar to useIsMutating

Replies: 1 comment 10 replies

Comment options

You must be logged in to vote
10 replies
@TkDodo
Comment options

@nirtamir2
Comment options

@TkDodo
Comment options

@TkDodo
Comment options

@nirtamir2
Comment options

Answer selected by TkDodo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants