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