Notistack: Update Snackbar Content in place using key

Created on 10 Mar 2020  路  7Comments  路  Source: iamhosseindhv/notistack

Expected Behavior

Being able to update the snackbar message (and maybe other props like variant) using the same key that enqueueSnackbar already returns.

Current Behavior

Can't update the snackbar message.

Context

Since the PR #50 was closed, I decided to open another issue.

In our case, we want to use notistack to show the progress in files uploads/downloads. But without having to open/close snackbars for every change in the upload/download process. For now we are usign regular snackbars from material ui.

Most helpful comment

Similar to above, I need a way to target, update, and reset the timer for a current snackbar to make a progress meter for background processes.

All 7 comments

Similar to above, I need a way to target, update, and reset the timer for a current snackbar to make a progress meter for background processes.

This is a need for us as well. We have multiple background processes happening at once, each with its own snackbar. We need to update each snackbar's progress and other state properties independently without removing and re-adding

This is also a must for me. Is there a plan for merging its implementation?

In case someone else is looking for this feature (@matt-ehinger , @MattGyverLee, @lsansaa ) and dont mind adding custom styling for achieving material-ui feel, I would recommend: https://github.com/fkhadra/react-toastify#readme

Very clean API, and easy to programatically modify the toasts/notifications :slightly_smiling_face:

Also looking for this feature to implement a background upload progress indicator

+1 For this feature

Please, add this feature. This one is preventing me from using a library.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Gareon picture Gareon  路  3Comments

kubalobo picture kubalobo  路  5Comments

VincentLanglet picture VincentLanglet  路  5Comments

cevr picture cevr  路  7Comments

FabianoLothor picture FabianoLothor  路  4Comments