0

onSuccess property does not work in the Edit and Create component I am using react-admin dashboard panel and I WANT TO DISPLAY CUSTOM NOTIFICATION

MY CODE

enter image description here

ERROR

enter image description here

DarkRaz
  • 21
  • 5

1 Answers1

0

The onSuccess prop was added in react-admin 3.6.0 (https://github.com/marmelab/react-admin/releases/tag/v3.6.0). If you're using a version lower than that, this prop isn't handled.

Remember to always look at the documentation for your release number in the react-admin doc (https://marmelab.com/react-admin/Readme.html).

François Zaninotto
  • 7,068
  • 2
  • 35
  • 56