TanStackT
TanStack3y ago
2 replies
clean-aquamarine

useMutation in library not receiving props from mutate

Hello everyone. I'm currently building a library with v5 of react-query. This library exports some hooks which are basically predefined useMutation hooks. When i now use these hooks the props passed to the mutate function are always undefined in the mutationFn. Doses anybody have an idea why that is happening?
Was this page helpful?