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

[Doc] Fix onSuccess callback signature for optimistic and undoable queries #5851

Merged
merged 2 commits into from
Feb 2, 2021

Conversation

fzaninotto
Copy link
Member

Closes #5819

@fzaninotto fzaninotto added the RFR Ready For Review label Feb 2, 2021
docs/Actions.md Outdated
@@ -527,7 +528,7 @@ const ApproveButton = ({ record }) => {
};
```

As you can see in this example, you need to tweak the notification for undoable calls: passing `true` as fourth parameter of `notify` displays the 'Undo' button in the notification.
As you can see in this example, you need to tweak the notification for undoable calls: passing `true` as fourth parameter of `notify` displays the 'Undo' button in the notification. Also, as side effects are executed immediately, they can't rely on the response beins passed to onSuccess.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

beins => being

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, thanks!

@djhi djhi merged commit 1a66998 into master Feb 2, 2021
@djhi djhi deleted the onSuccess-mutation-param branch February 2, 2021 17:48
@djhi djhi added this to the 3.12.1 milestone Feb 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RFR Ready For Review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Edit onSuccess prop doesn't work correctly
3 participants