Skip to content
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

Server-side rendering styles from a third-party library #379

Open
jsonmaur opened this issue May 3, 2018 · 0 comments
Open

Server-side rendering styles from a third-party library #379

jsonmaur opened this issue May 3, 2018 · 0 comments

Comments

@jsonmaur
Copy link

jsonmaur commented May 3, 2018

I couldn't find any documentation or previous issues for building a third-party library with glamor, and I've come across an SSR issue related to it.

Let's say I'm building a third-party React component library that will be published to NPM, and I'm using glamor for all the styling in it. I'm also using glamor in my main app, which depends on SSR. When I install my component library into my main app and run the renderStatic method, it only returns the styles from the main app and NOT the component library.

This is a big problem. If we're only rendering half of the styles, everything from the component library will flash from un-styled to styled as it's injected into the DOM. I've combed through the documentation without any luck, so I'm hoping there's an undocumented fix for this.

Thanks for all the great work :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant