-
Notifications
You must be signed in to change notification settings - Fork 144
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
Multiple withStyles only rendering the first #37
Comments
Note: After upgrading to version |
Your context insertCss function should handle all style arguments rather than just one, for example: // client.js
const context = {
insertCss(...styles) { styles.forEach(style => style._insertCss()); },
}; // server.js
const css = [];
const context = {
insertCss(...styles) { styles.forEach(style => css.push(style._getCss())); },
}; |
I guess, we need to create |
Right makes sense, we were only taking the first item rather than the array of items. Cheers. |
@Ehesp what was the resolution? |
I asked this on Gitter originally, but I'm struggling to get the following to work (example):
This doesn't throw any errors, and both the styles are within the
styles
array, only theappStyles
are loaded in.Is this the correct way of going about this?
The text was updated successfully, but these errors were encountered: