-
Notifications
You must be signed in to change notification settings - Fork 60
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
Type issue with useGenericMutation function. #1
Comments
Hi! Thank you, glad it was useful. About this issue: it's strange that I didn't notice it before. I think the most logical way to fix it - change the types to this:
The issue happened, because if there is no For example:
So, if
I know it's a bit tricky, because we have different case and one generic function, but I think it will work. Sorry if the explanation is a messy. I made a fix comment. |
Thanks for the explanation and the response! I will take my time to analyze and understand this |
I want to add one new record, for that how to pass old data? |
Hello,
I am getting the following type issue within useGenericMutation function. Can you help me to understand what is needed to be done?
Thanks for the great tutorial.
The text was updated successfully, but these errors were encountered: