You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 :)
The text was updated successfully, but these errors were encountered:
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 :)
The text was updated successfully, but these errors were encountered: