mui / material-ui

Material UI: Comprehensive React component library that implements Google's Material Design. Free forever.
https://mui.com/material-ui/
MIT License
93.44k stars 32.16k forks source link

[docs][Snackbar] Stop recommending the usage of notistack, the library is seemingly no longer (properly) maintained #42615

Open favna opened 3 months ago

favna commented 3 months ago

Related page

https://mui.com/material-ui/react-snackbar/

Kind of issue

Other

Issue description

The current documentation page for react-snackbar mentions notistack for third-party integrations. However, the author of the notistack seems to have gone MIA with an ever-piling stack of unaddressed issues and PRs. I also created an issue querying if the project is still maintained, which thus far has gone unanswered: https://github.com/iamhosseindhv/notistack/issues/602.

It would be best for MUI to stop directing people to use an unmaintained library as that is asking for trouble sooner or later.

Context

Notistack should be removed from third-party integrations on the relevant page, and the whole block should be removed as it is the last one remaining. Possibly the documentation could link to contemporary projects such as react-toastify. A project like react-toastify does not use MUI, but it is a good alternative to achieve stateful imperative snackbar API.

Search keywords: notistack, snackbar

ZeeshanTamboli commented 3 months ago

I agree. We shouldn't recommend this library in our documentation. I've opened PR #42739 to remove it.

Originally, we added Material UI's Snackbar usage with notistack to show vertically stacked Snackbars. I was working on implementing this feature directly in Material UI (see PR #31991), but the PR was halted for various reasons.

DiegoAndai commented 2 months ago

I added this issue to the Material UI with the Base UI milestone, as we should ideally rely on Base UI's Toast component, which will eventually be released. I expect us to work on this during Q4.