TanStackT
TanStack3y ago
19 replies
efficient-indigo

creating a custom useMutation hook

I'm struggling to create a custom mutation hook passing in variables and destrcuturing
If i add destructed params inside useMutation if get property does not exist on type void Does this mean i need to pass generics to infer the types?
image.png
Was this page helpful?