Replies: 1 comment
-
@fauberon do you have a minimal repro in something like Stackblitz that I could take a look at? |
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
Uh oh!
There was an error while loading. Please reload this page.
-
Using react 18.3.1, "@fluentui/react-components" : "9.54.2";
I set FluentProvider at the root element with a "theme" variable used in the context;
When I try setting the context to one of the standard value, such as webDarkTheme, error raises:
Uncaught Runtime error
Objects are not valid as a React child (found: object with keys {borderRadiusNone, borderRadiusSmall, etc
Any idea? Is this a known limitation of FluentProvider, and shall I use https://react.fluentui.dev/?path=/docs/utilities-theme-createcssrulefromtheme--default (there is an exmple of theme switching).
Thanks for your help.
Beta Was this translation helpful? Give feedback.
All reactions