iamhosseindhv / notistack

Highly customizable notification snackbars (toasts) that can be stacked on top of each other
https://notistack.com
Other
3.93k stars 298 forks source link

[Request] Add support for a progress|updatable variant #88

Closed ShivamArora closed 5 years ago

ShivamArora commented 5 years ago

Please provide an updatable variant where we can display the progress of an ongoing operation without enqueuing another snackbar to the stack.

Expected Behavior

The enqueueSnackbar already returns a key for the snackbar making it dismissable.

We should be able to update the snackbar message using the same key as well.

Current Behavior

There doesn't exist any such support the update the snackbar message yet.

Context

I want to display the progress of an ongoing operation like a file upload.

iamhosseindhv commented 5 years ago

Thanks @ShivamArora for opening the issue. This for sure will be added to project. Idea and partial implementation can be found here: https://github.com/iamhosseindhv/notistack/pull/50