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
An issue I can foresee arising from the usage of transitions in showing and hiding toasts is an event firing before the toast transition has completed, (e.g. dispatching the hide event while the toast is still fading off the screen).
A common pattern to fix this was to separate the events show and hide into the lifecycle events willShow, didShow, willHide and didHide, tied to whether or not the transition has completed. Does this pattern give the desired behavior or is it too specific, and should we instead opt to simply dispatch show and hide when the toast is fully shown/hidden or beginning to show/hide.
The text was updated successfully, but these errors were encountered:
An issue I can foresee arising from the usage of transitions in showing and hiding toasts is an event firing before the toast transition has completed, (e.g. dispatching the
hide
event while the toast is still fading off the screen).A common pattern to fix this was to separate the events
show
andhide
into the lifecycle eventswillShow
,didShow
,willHide
anddidHide
, tied to whether or not the transition has completed. Does this pattern give the desired behavior or is it too specific, and should we instead opt to simply dispatchshow
andhide
when the toast is fully shown/hidden or beginning to show/hide.The text was updated successfully, but these errors were encountered: