Skip to content

docs: update styling support for streaming#35375

Merged
kodiakhq[bot] merged 4 commits intovercel:canaryfrom
huozhi:docs/react-18
Mar 26, 2022
Merged

docs: update styling support for streaming#35375
kodiakhq[bot] merged 4 commits intovercel:canaryfrom
huozhi:docs/react-18

Conversation

@huozhi
Copy link
Copy Markdown
Contributor

@huozhi huozhi commented Mar 16, 2022

Documentation / Examples

  • Make sure the linting passes by running yarn lint

@huozhi huozhi marked this pull request as ready for review March 16, 2022 16:59
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we link to a RFC or Discussion for the updates?

Comment thread docs/advanced-features/react-18/streaming.md Outdated
Comment thread docs/advanced-features/react-18/streaming.md Outdated
Copy link
Copy Markdown
Contributor

@devknoll devknoll Mar 17, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unstable_useFlushEffects should be sufficient for any library that follows the recommended upgrade guide. It's just that styled-jsx support is built-in and happens to be the only one (as far as I know) that has done so.

@huozhi huozhi marked this pull request as draft March 17, 2022 17:42
@huozhi
Copy link
Copy Markdown
Contributor Author

huozhi commented Mar 23, 2022

@styfle @devknoll Now the built-in styling solutions (global css, css modules and styled-jsx) are supported, for other CSS solutions I think we need some time to investigate to see if they can leverage useFlushEffects to support them. I'll follow up that in another thread.

@huozhi huozhi marked this pull request as ready for review March 23, 2022 10:40
@huozhi huozhi requested review from devknoll, shuding and styfle March 23, 2022 10:40
styfle
styfle previously approved these changes Mar 23, 2022
Comment thread docs/advanced-features/react-18/streaming.md Outdated
Co-authored-by: Shu Ding <g@shud.in>
@huozhi huozhi requested a review from shuding March 26, 2022 12:39
@kodiakhq kodiakhq Bot merged commit 27d23f5 into vercel:canary Mar 26, 2022
@huozhi huozhi deleted the docs/react-18 branch March 26, 2022 21:03
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Apr 26, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

created-by: Next.js team PRs by the Next.js team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants