Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
This is a bit of a follow-up to #2304.
Let's consider an example like this:
Right now, if I don't want to hard code the
mutationKeytwice I have to save it outside of the composable so it can be shared.I would like the mutation composable to be the single source of truth and expose the
mutationKeyforuseIsMutatinganduseMutationStateto reuse. It could be used like this:This would be especially useful when the
mutationKeyhas dynamic parts.While writing this I even thought of a possible extension of this concept in the future:
This would allow the
useMutationStateto inherit its typings from the passeduseMutation.Beta Was this translation helpful? Give feedback.
All reactions