You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So, it will be going to stay as it is. For your expectation; you can use your own solutions. For instance, an example of usage can be as below. (In addition, it is not related to the line(code) that you have mentioned.)
// examplevaryourExpectationNotifySuccess=function(message,callback){varyourTimeoutExpectation=1923;Notiflix.Notify.success(message,{timeout: yourTimeoutExpectation,});vardelay=setTimeout(function(){callback();clearTimeout(delay);},yourTimeoutExpectation);};// usageyourExpectationNotifySuccess('Sol lucet omnibus',function(){// your callback codes...console.log('Notiflix');});
Is your feature request related to a problem? Please describe.
I wanted a notification with a timeout and a callback.
Describe the solution you'd like
I'd like to have the possibility to have a timeout and a callback together.
Additional context
It is currently not possible because of this line which prevent the timeout if callback is set: https://github.com/notiflix/Notiflix/blob/main/src/notiflix.js#L769
If you are okay with this, I can try to make a PR!
The text was updated successfully, but these errors were encountered: