-
Notifications
You must be signed in to change notification settings - Fork 5
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
Change from componentWillMount
to componentDidMount
#6
Comments
if we use |
Could this be an option? |
well, if you render your components on the server, I guess you want the right styles to be in the page on initial load, right?
|
But are you shipping the CSS from the server? |
On the project I'm using this I have webpack handling both server and browser builds, on the server build I've attached the |
PS: Even if you are loading CSS on the server for you to know which classes you need to render, you won't need to call |
So we can make this compatible with Universal JS, we must ensure the styles code aren't run on the server side. As server executes
componentWillMount
, the better would be to change the useability check to thecomponentDidMount
hook on the Component's life cycle.The text was updated successfully, but these errors were encountered: