T
TanStack•3y ago
extended-salmon

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?
2 Replies
xenial-black
xenial-black•3y ago
No clue without seeing a reproduction
extended-salmon
extended-salmonOP•3y ago
Was my bad. While creating a reproduction I noticed the frontend that consumes the library was still using v4 😅

Did you find this page helpful?