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
Global requires 'static & doesn't support Classes #78
Comments
Also I'll note in my example, I would have preferred to use |
Ok, I feel a little silly. <Global css={ global::get_style() } />
<Global css={ theme_css } /> Whichs begs, wouldn't this make sense to be permissible? <Global css={ classes!(global::get_style(), theme_css) } /> |
No, and this lifetime parameter has been removed on master already
The conversion that often takes place, converting a
You already found the easy workaround in this case ;) |
Awesome. Perhaps justification for a |
stylist-rs/packages/stylist/src/yew/global.rs
Line 52 in d47e21f
Is it really necessary this is static? Or can we allow
<Global css={}>
to takeClasses
as input?My main concern is trying to apply a theme with a little more modularity than the example.
My use case:
The text was updated successfully, but these errors were encountered: