initialize useMutation instances without hardcoding them? #3971
Unanswered
gabriel-frattini
asked this question in
General
Replies: 0 comments
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.
-
Basically I want a useMutation() instance to be created for every argument i give inside a function's parameter. I think its best to give some context here so i made a small issue for my hook and hope it helps gabriel-frattini/trpc-reducer#1
To be frank im not entirely sure whether this approach is the right way to accomplish my task, I just know that I need some way of dynamically inputing any number of actions into my hooks and I want to be able to call .mutate() for every action argument that I gave to the function.
Beta Was this translation helpful? Give feedback.
All reactions