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

Docs: Clarify template.js behavior #64781

Merged
merged 3 commits into from
Apr 19, 2024
Merged

Docs: Clarify template.js behavior #64781

merged 3 commits into from
Apr 19, 2024

Conversation

delbaoliveira
Copy link
Contributor

Docs changes for DX item: "Why can't I use pathname in a Server Component"

- It's not that template.js rerenders (it's only rendered once), but that child Client Component state is reset.
- Templates don't rerender on navigation, so suspense would not be triggered.
@delbaoliveira delbaoliveira requested review from a team as code owners April 19, 2024 13:51
@delbaoliveira delbaoliveira requested review from jh3y and timeyoutakeit and removed request for a team April 19, 2024 13:51
@ijjk ijjk added created-by: Next.js Docs team PRs by the Docs team. Documentation Related to Next.js' official documentation. labels Apr 19, 2024
@manovotny manovotny merged commit b7eb7d3 into canary Apr 19, 2024
34 checks passed
@manovotny manovotny deleted the docs-8jgd branch April 19, 2024 14:27
@github-actions github-actions bot added the locked label May 4, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
created-by: Next.js Docs team PRs by the Docs team. Documentation Related to Next.js' official documentation. locked
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants