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

Improve next/dynamic docs and add links to layouts RFC. #37244

Merged
merged 3 commits into from
May 29, 2022

Conversation

leerob
Copy link
Member

@leerob leerob commented May 27, 2022

  • Updates next/dynamic docs to teach Suspense first
  • Adds links to Layouts RFC in layouts/pages docs
  • Clarifies and simplifies streaming docs

kodiakhq bot pushed a commit that referenced this pull request May 27, 2022
When using `next/dynamic` with `suspense: true`, the API will opt into `React.lazy` with react 18. But previously it doesn't preload the dynamic chunks. This pr will include the chunks into initial html for faster hydration instead of loading the chunk until the script is executed. This makes `next/dynamic` has a significant difference from `React.lazy` api

x-ref: #37197 (comment)
x-ref: #37244
@kodiakhq kodiakhq bot merged commit 7416265 into canary May 29, 2022
@kodiakhq kodiakhq bot deleted the docs-improvements branch May 29, 2022 23:48
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 29, 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.

2 participants