datadata parameter in the onMutate function. type MutateData = Parameters<typeof api.task.createTask.useMutation>[0] type MutateData = Parameters<typeof api.task.createTask.useMutation>[0] . The problem is that I can't then access the ['onMutate'] because it doesn't exist on there. Does anyone know how to get this?
Join the Discord to ask follow-up questions and connect with the community