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 SaveButton Breaking Change Regarding FormContext #5842

Merged
merged 1 commit into from
Feb 2, 2021

Conversation

djhi
Copy link
Collaborator

@djhi djhi commented Feb 1, 2021

No description provided.

@djhi djhi added the RFR Ready For Review label Feb 1, 2021
@djhi djhi added this to the 3.12.1 milestone Feb 1, 2021
Copy link
Contributor

@Luwangel Luwangel left a comment

Choose a reason for hiding this comment

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

Thanks! We'll have a lot of things to do in the next major version 😄.

'<SaveButton onSave> prop is deprecated, use the onSuccess prop instead.'
);
if (!saveContext || !saveContext.setOnSave) {
console.warn(
'Using <SaveButton> outside a FormContext is deprecated.'
Copy link
Contributor

Choose a reason for hiding this comment

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

Everything is deprecated in this method ^^.

@fzaninotto fzaninotto merged commit ac6f065 into master Feb 2, 2021
@fzaninotto fzaninotto deleted the fix-save-button-breaking-change branch February 2, 2021 09:12
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.

3 participants