Failed prop type: Invalid prop children
of type boolean
supplied to ForwardRef(Snackbar)
#8664
Labels
children
of type boolean
supplied to ForwardRef(Snackbar)
#8664
What you were expecting:
No errors in the console.
What happened instead:
The following error appears, when I save one of my Edit views (which triggers a default "Element updated" notification):
Steps to reproduce:

Since it's a non public repo I cannot share the code, but I am not doing anything crazy here.
I assume it has to do with the newer versions of @mui, where Snackbar does not accept boolean as children anymore.
But here it looks like Notification will pass
false
to the Snackbar sometimes:https://github.com/marmelab/react-admin/blob/master/packages/ra-ui-materialui/src/layout/Notification.tsx#L120
Environment
The text was updated successfully, but these errors were encountered: