-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OverlayProvider ist added multiple times with the MarigoldProvider #1195
Comments
Could this be a solution to the problem (in useTheme.tsx) since we are stacking the providers there? |
Not quite, the lib solved a problem before hooks existed (requiring multiple context consumers). This is why it is deprecated now. The solution is actually much simpler and stupid 😄 |
@sebald Should I just try to check if the provider is there before adding it? |
If it is possible at all I have to find out first 😀 |
@sebald How do you see that OverlayProvider added multiple times? |
See description -> cascading |
Ok now I get it. |
My gut says Also: what if you don't know if the "outer" stuff uses marigold!? |
waiting for #1317 |
Description
The
<MarigoldProvider>
always adds react-aria's OverlayProvider. Especially if you using cascading theming. There should only be a single instance of the provider at any time.Otherwise this can lead to inaccessible overlays.
The text was updated successfully, but these errors were encountered: