Skip to content

Mutation version of queryOptions(). #6096

Answered by TkDodo
nix6839 asked this question in Ideas
Discussion options

You must be logged in to vote

what would you need it for? The main reason for queryOptions is to have a way to share options between useQuery, useQueries and things like queryClient.prefetchQuery. There's no equivalent for mutations where this would be needed

Replies: 5 comments 27 replies

Comment options

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

@chrisirhc
Comment options

@dhulme
Comment options

@TkDodo
Comment options

@dhulme
Comment options

Answer selected by nix6839
Comment options

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

@smashercosmo
Comment options

@TkDodo
Comment options

@hossamAlhamidi
Comment options

@junwen-k
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@leognmotta
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet