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

Does StyleSheetServer.renderStatic work with a stream ? #63

Open
Justkant opened this issue Apr 21, 2016 · 4 comments
Open

Does StyleSheetServer.renderStatic work with a stream ? #63

Justkant opened this issue Apr 21, 2016 · 4 comments

Comments

@Justkant
Copy link

I'm using react-dom-stream for my server rendering.
I'm wondering if aphrodite is working or could work with streams ?

@jlfwong
Copy link
Collaborator

jlfwong commented Apr 22, 2016

There's no support at the moment. I'm not sure what it would take to make it stream compatible. My gut is that it would be quite awkward to accomplish, since we must send the entire CSS payload before any of the HTML is sent, and we must generate the entire HTML in order to figure out what CSS to send.

@Justkant
Copy link
Author

That's what I thought.
And what about scoped style ?

@Justkant
Copy link
Author

And I think this will be a cool feature to support because of this React issue

@xymostech
Copy link
Contributor

@Justkant scoped styles aren't really relevant to aphrodite since we add unique suffixes to each of our styles already.

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

3 participants