Enable buffer methods before needing to call StyleSheetServer.renderStatic#342
Enable buffer methods before needing to call StyleSheetServer.renderStatic#342DaBs wants to merge 2 commits intoKhan:masterfrom
Conversation
… Aphrodite cannot be the last call before renderToStatic
|
Hey @DaBs, Thanks for the PR! Mind signing our Contributor License Agreement? When you've done so, go ahead and comment Yours truly, |
|
[clabot:check] |
|
CLA signature looks good 👍 |
|
@jlfwong Is this something you know if people within the project has time to look at? I believe it's quite a nice way of giving some manual tools for people to be able to temporarily suspend aphrodite style rendering when it comes to SSR. |
|
I'm running into this issue as well! Any chance this will be merged & released any time soon? :) |
|
Y'all, this has been an issue for quite a long time now... |
|
Man, I has a problems that this PR will resolve. Has plans to merge it? The problem is the below:
@jlfwong can you help us? |
Currently, Aphrodite assumes that it is the first server-side module to render the tree, but
since
StyleSheetServer.renderStaticexpects a string as return value, it eliminates any possibility of walking the reference with another module.This PR borrows some of the TestUtils functions to allow a, albeit a bit clunky, method of avoiding having to append classes to the DOM while walking an existing reference to a tree.