apvarun / toastify-js

Pure JavaScript library for better notification messages
https://apvarun.github.io/toastify-js/
MIT License
2.13k stars 230 forks source link

Disable stackable toasts #43

Closed Icaras12x closed 4 years ago

Icaras12x commented 4 years ago

What about an option to disable the way toasts stack one on another and let them always be generated one on top of eachother, occupying only one space ?

apvarun commented 4 years ago

@Icaras12x Since its a very specific use case, I believe that this can be achieved in your custom code by manually hiding the previous toast and showing the new one. Sample: https://codesandbox.io/s/toastify-multiple-toasts-dwd4p

Few other reasons that I think this shouldn't be included in the library: