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
Currently, consumers of Paragon's Toast must render the Toast before its visible (for fade in transition to work properly). However, consumers need to implement their own state to determine whether the Toast is visible or not.
It may be helpful to provide a ToastContainer component with helpful utility function(s) to dynamically create/show Toast notifications as needed throughout the component rendering lifecycle.
Toast component makes it trivial to render a single toast for a given use case. However, it does not adequately provide a mechanism to support multiple toasts displayed at once, keeping their animation (fade in/out) and their default close behavior.
Ideas
Should we separate out the logic of
"data" -> toastText
Some key that exists used as "global state" to flag when a toast is trigger on/off.
The text was updated successfully, but these errors were encountered:
That what we really want when showing a toast is just to "push a message onto the toast queue" so that it will eventually get displayed to the user, without needing to worry about whether or not other toasts are also being displayed now.
Context
Currently, consumers of Paragon's
Toast
must render theToast
before its visible (for fade in transition to work properly). However, consumers need to implement their own state to determine whether theToast
is visible or not.It may be helpful to provide a
ToastContainer
component with helpful utility function(s) to dynamically create/showToast
notifications as needed throughout the component rendering lifecycle.Possibly use for inspiration:
Prior notes:
Toast
component makes it trivial to render a single toast for a given use case. However, it does not adequately provide a mechanism to support multiple toasts displayed at once, keeping their animation (fade in/out) and their default close behavior.Ideas
toastText
The text was updated successfully, but these errors were encountered: