Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

createMutationKeys with schema does not expose type mutationFn like the createQueryKeys function does #63

Closed
siteassist-benjamin opened this issue May 15, 2023 · 1 comment

Comments

@siteassist-benjamin
Copy link

We need to access and reuse the mutationFn from one of the mutationKeys definitions. However the only property exposed by the library for createMutationKeys is the mutationKey.

This is not a problem with the createQueryKeys function - see examples below:

Screenshot 2023-05-15 at 12 07 14
Screenshot 2023-05-15 at 12 07 04

I have tried looking into where this would need to change but I am a little lost as the typing system is very complex. Any help would be deeply appreciated 🙏

@lukemorales
Copy link
Owner

@siteassist-benjamin the createMutationKeys types are in fact broken, it's a now issue #55 but I didn't have the time yet to fix it. I'll just close the issue as a duplicate of #55, but feel free to add any comments on that issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants