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

Document usage with SSR streaming #74

Open
oyeanuj opened this issue Dec 28, 2018 · 3 comments
Open

Document usage with SSR streaming #74

oyeanuj opened this issue Dec 28, 2018 · 3 comments

Comments

@oyeanuj
Copy link

oyeanuj commented Dec 28, 2018

As per discussion in #18, creating an issue that can serve as starting point for some documentation around using react-head with SSR streaming. Both #14 and #18 mention that there is support for it, just no recommended usage.

For reference, here are the docs that react-helmet-async has for streaming SSR:
https://github.com/staylor/react-helmet-async#streams

cc: @jamesjjk

@tizmagik
Copy link
Owner

tizmagik commented Jan 2, 2019

Including my response from Twitter on here...

I think the same mechanism that works for react-helmet-async should also work for react-head. The challenge with streaming is you don’t always know about all the head updates before you start streaming. You’ll need to either buffer the stream and deliver it all at once, or rely on client rendering to have it update to the latest changes in head once in the browser.

That being said, a PR to update Docs would be appreciated. Thanks! :)

@max-mykhailenko
Copy link

max-mykhailenko commented Apr 2, 2019

Where I can find example how to use it with SSR sreaming? (or why PR was merged?)

@tizmagik
Copy link
Owner

@max-mykhailenko it would work the same way it does here: https://github.com/staylor/react-helmet-async#streams

It would be nice to update our docs or example app with specific instructions (PRs welcome!) 😁

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