fkhadra / react-toastify

React notification made easy 🚀 !
https://fkhadra.github.io/react-toastify/introduction
MIT License
12.33k stars 676 forks source link

`onClick` prop for toast is deprecated. What is equal replacement? #1024

Closed cybertino closed 5 months ago

cybertino commented 7 months ago

When you use the prop, comment says: You can pass a react component with you handler instead. but this handler only applies to the content component.

Is there any handler that is applicable to the whole toast element? If not, should it be deprecated then?

Also documentation does not reflect that this prop is deprecated.

fkhadra commented 5 months ago

Hey @cybertino, I'll publish a patch version to remove the deprecated notice. I don't have a suitable alternative for now, so I'll rollback my decision.

cybertino commented 5 months ago

Thanks @fkhadra!