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

[TypeScript] Fix useMutation requires payload argument #6182

Merged

Conversation

jtomaszewski
Copy link
Contributor

When you call useMutation, payload argument is already optional. However TS type definition forces you to pass payload: {} . This commit removes that requirement.

@fzaninotto fzaninotto changed the title fix(useMutation): Make payload argument optional [TypeScript] Fix useMutation requires payload argument Apr 26, 2021
@fzaninotto fzaninotto merged commit b479c05 into marmelab:master Apr 26, 2021
@fzaninotto
Copy link
Member

Thanks!

@fzaninotto fzaninotto added this to the 3.15 milestone Apr 26, 2021
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

Successfully merging this pull request may close these issues.

2 participants