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
Similar to #1282, I wrap my application in the ToastProvider to manage global toasts. However, we also want the ability to show a Toast within a dialog modal alongside the global toast viewport. When I attempted to use nested ToastProviders, it does end up working, but wondering if this should be avoided - something like:
<ToastProvider>
<App>
<GlobalToasts />
<ToastProvider>
<ToastViewport>
<Page>
<Modal>
<ModalToasts /> <-- these toasts would be positioned relative to the Modal
<ToastProvider>
<ToastViewport>
If not, I'd suggest alongside "Features" section, there could be a "Limitations" section outlining this.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Similar to #1282, I wrap my application in the
ToastProvider
to manage global toasts. However, we also want the ability to show a Toast within a dialog modal alongside the global toast viewport. When I attempted to use nested ToastProviders, it does end up working, but wondering if this should be avoided - something like:If not, I'd suggest alongside "Features" section, there could be a "Limitations" section outlining this.
Beta Was this translation helpful? Give feedback.
All reactions