Material-ui: [Snackbar] notistack example doesn't dismiss automatically

Created on 27 Oct 2020  路  2Comments  路  Source: mui-org/material-ui

  • [x] The issue is present in the latest release.
  • [x] I have searched the issues of this repository and believe that this is not a duplicate.

Current Behavior 馃槸

When implementing notistack with the Material UI v 5.0.0-alpha.13, the snackbar doesn't dismiss automatically

Expected Behavior 馃

Snackbars should dismiss automatically as per previous versions of Material UI

Steps to Reproduce 馃暪

  1. Visit: https://next.material-ui.com/components/snackbars/#notistack
  2. Click 'Show Snackbar'
  3. Snackbar will not dismiss

For working version:

  1. Visit: https://material-ui.com/components/snackbars/#notistack
  2. Click 'Show Snackbar'
  3. Snackbar will dismiss after a few seconds

Context 馃敠

I'm trying to use notistack to imperatively show snackbars

bug 馃悰 Snackbar docs

Most helpful comment

This seems related to v5 support of Notistack in https://github.com/iamhosseindhv/notistack/issues/295.

All 2 comments

This seems related to v5 support of Notistack in https://github.com/iamhosseindhv/notistack/issues/295.

@oliviertassinari Appreciate you pointing me in the right direction, I've been able to temporarily workaround this by relying on notistack-next by running the following:

yarn add notistack@npm:npm:notistack-next

Hoping to see changes merged into master soon!

Was this page helpful?
0 / 5 - 0 ratings