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

Fix and improve onSuccess/onFailure typings #5787

Closed
wants to merge 2 commits into from

Conversation

HendrikRoehm
Copy link

The onSuccess type declaration was not consistent with the usage in useDataProvider. Additionally, there was an erroneus definition in the material-ui package.

There were several locations, where the typings were not defined yet for onSuccess and onFailure. useDeclarativeSideEffects and useDataProvider suggested the commited types.

Fixes #5761

The onSuccess type declaration was not consistent with the usage in useDataProvider. Additionally, there was an erroneus definition in the material-ui package.
There were several locations, where the typings were not defined yet for onSuccess and onFailure. useDeclarativeSideEffects and useDataProvider suggested the commited types.
fzaninotto added a commit that referenced this pull request Feb 2, 2021
@fzaninotto
Copy link
Member

As this PR needed rebase and was incomplete, and because I had to write the types to properly understand them, I redid the job in #5853.

thanks a lot for your contribution, it put me on the right track!

@fzaninotto fzaninotto closed this Feb 2, 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.

Create prop onSuccess has wrong typing
2 participants