-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
[3.11] SaveButton inside FormWithRedirect component throws error #5691
Comments
@WiXSL follow documentation properly,enclose |
My example wasn't the best. But I have code like that, that was working before verion 3.11. |
Using |
Same here, three views on my side were broken after 3.11 update. Changing from the react-admin |
I'm sorry that you were bitten by this as well, but it's not a breaking change if the feature was never documented. |
@fzaninotto , the DEMO examples are not updated to this latest changes |
@alextaymx Not sure what you're talking about. Can you be more specific? |
#5738 has just been merged, which solves the problem (At least the one I reported) at least until the next mayor release. By then it would be my responsibility to upgrade my code to use |
@fzaninotto , if i'm not mistaken, in the demo repo, the Review Edit part https://github.com/marmelab/react-admin/blob/master/examples/demo/src/reviews/ReviewEdit.tsx is using SimpleForm without Edit component, this is where the error pops out. |
@alextaymx You're right. Since @WiXSL's patch, it only logs a warning, but it should be changed. I'll update the demo. |
The custom form shown here:
https://marmelab.com/react-admin/CreateEdit.html#custom-form-component
No longer works with react-admin v3.11
I copy-paste the above sample as the Post form in the following sandbox:
https://codesandbox.io/s/charming-mahavira-kuphi?file=/src/posts/PostCreate.js
TypeError: Cannot read property 'save' of undefined
Environment
The text was updated successfully, but these errors were encountered: