Replies: 1 comment
-
I don't see it explicitly called out in the React docs on contexts, but it's totally safe to nest multiple contexts. Your components will just use the most closest context in their ancestry. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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