T
TanStack2y ago
fascinating-indigo

mutation options

is there a way to use mutations like the queryOptions api? so something like: const addTodoMutation = mutationOptions({ mutationKey: ["todo", "add"], mutationFn: () => {} }) const { mutate } = useMutation(addTodoMutation)
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?