notiflix / Notiflix

Notiflix is a pure JavaScript library for client-side non-blocking notifications, popup boxes, loading indicators, and more that makes your web projects much better.
https://notiflix.github.io
MIT License
635 stars 55 forks source link

[FEAT] - Function to close all open toast with notify #84

Closed simonebosio91 closed 2 months ago

simonebosio91 commented 2 months ago

Is your feature request related to a problem? Please describe.

In my portal today I have the problem that when I log out and return to the login, if there are any toast with notify from the session they remain on the screen even on the login page.

Describe the solution you'd like

It would be nice to have a function that can be easily called on logout that closes all open toast

Describe alternatives you've considered

To date, the only solution is to save the popup id when it is opened, within the session storage and then at logout cycle them and then close them

furcan commented 2 months ago

Hello,

Could you please share a screen record or something regarding what is happening and what is expected? Then I can consider this improvement or maybe it is not applicable or maybe it is implementation specific and shouldn't be in the library and so on...

Best wishes, Furkan