-
Notifications
You must be signed in to change notification settings - Fork 323
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
[BUG] Buffering HTML for bots is not working properly in workers environments #1383
Comments
Related Shopify/hydrogen#1309 (comment) |
While Cloudflare works on a fix, new ReadableStream({
// ...
+ }, {
+ highWaterMark: 0,
}); I might also propose this upstream in React to be more explicit. |
Since the React fix was merged upstream, developers can get this fix by using |
Update: Cloudflare will be shipping the fix next week (Week of June 7, 2022) |
When running in a worker environment using
?_bot
, we get a response like this:Which means, even though we await for
ssrReadable.allReady
before buffering, React is still producing JS tags to assemble the HTML.In Node, however, we get a proper response by starting to buffer after
onAllReady
is called:The text was updated successfully, but these errors were encountered: