diff options
| author | Aurora Scharff <66901228+aurorascharff@users.noreply.github.com> | 2026-08-27 14:18:25 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-08-27 14:18:25 +0200 |
| commit | 20e89cc4bb256eb7b1fcbdc68f7175284709a847 (patch) | |
| tree | 9cf12d6245553b63265bbf5b40fb8f4044b7944d | |
| parent | dd089a8c752c966dee8bf0f27cb625ba193ffd9e (diff) | |
| parent | e8af80c9b544f210f555c6c1ea0f037388333bc6 (diff) | |
Merge pull request #327 from aurorascharff/fix/nesting-rule-consistencyagent-skills-20e89cc4bb256eb7b1fcbdc68f7175284709a847
Scope the nested-VT rule in nextjs.md to match SKILL.md
| -rw-r--r-- | skills/react-view-transitions/references/nextjs.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/skills/react-view-transitions/references/nextjs.md b/skills/react-view-transitions/references/nextjs.md index dd42fd8..cd5b76f 100644 --- a/skills/react-view-transitions/references/nextjs.md +++ b/skills/react-view-transitions/references/nextjs.md @@ -34,7 +34,7 @@ When following [implementation.md](implementation.md), apply these additions: ## Layout-Level ViewTransition -**Do NOT add a layout-level VT wrapping `{children}` if pages have their own VTs.** Nested VTs never fire enter/exit when inside a parent VT — page-level enter/exit will silently not work. Remove the layout VT entirely. +**Do NOT add a layout-level VT wrapping `{children}` if pages have their own VTs.** A nested VT skips its own enter/exit only when it mounts or unmounts *as one unit* with a parent VT, which is exactly what a layout VT wrapping `{children}` causes — page-level enter/exit will silently not work. Remove the layout VT entirely. Nesting is otherwise fine and sometimes required: a child VT inside a *persistent* parent VT fires enter/exit normally, and two nested boundaries are the intended shape for [shared elements inside list items](../SKILL.md#composing-shared-elements-with-list-identity). A bare `<ViewTransition>` in layout works only if pages have **no** VTs of their own. |
