Typing mutate() variables when using setMutationDefault
Hi, I have some simple code here to set up a default mutation function and then call that with a useMutation, but it doesn't like the variables object I am passing in to mutate because it's not of type void. How do I type the variables object? The mutation function parameters are already typed so I'm not sure where it's expecting me to set this up.
1 Reply
genetic-orangeOP•2y ago
figured it out