aphrodite
aphrodite copied to clipboard
Does StyleSheetServer.renderStatic work with a stream ?
I'm using react-dom-stream for my server rendering. I'm wondering if aphrodite is working or could work with streams ?
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.
That's what I thought. And what about scoped style ?
And I think this will be a cool feature to support because of this React issue
@Justkant scoped styles aren't really relevant to aphrodite since we add unique suffixes to each of our styles already.