-
Notifications
You must be signed in to change notification settings - Fork 187
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
Aphrodite / GraphQL / SSR - cannot automatically buffer without a document #326
Comments
Same exact issue here. Any luck? |
Same issue here. This essentially makes aphrodite unusable for my current project, which is sad. I'll dig more into some render calls to see what we can do about it. |
Same problem at Airbnb. We we're going to implement this at the interface level, swapping out a noop interface for the Aphrodite interface, but if we solve this within aphordite we could use that potentially. |
I've got a barebones version working that I will PR soon @adamrneary. I just need to update some documentation for the new methods. EDIT: I haven't solved the hydration problem in terms of server-side rendering and classes depending upon potential state gained from tree walking with e.g. Apollo, but it does give leeway to using Aphrodite later on in your server-side server logic. |
@adamrneary @zaklampert @14850842 This PR aims to solve the basic issue. A better solution would presumably be to extend more of the existing interface to respect server-side rendering, but this is a immediate solution to the problem, assuming you don't need the data from your GraphQL queries to generate classes. |
I have implemented a Graphql Server Side Rendered (razzle) react app. We get an intermittent error
cannot automatically buffer without a document
when loading the app.It seems to be an issue when apollow gets the data from the tree and tries to compile the styles at that point.
A suggested method was to call the following:
But running this gives the intermittent error. Have tried other various technique but have run out of options. Server get request shown below.
The text was updated successfully, but these errors were encountered: