[pull] main from motiondivision:main#212
Merged
Conversation
In SPA frameworks, page navigation removes DOM elements externally without going through Motion's projection unmount path. This left zombie projection nodes in the NodeStack, causing broken layout animations when new elements with the same layoutId mounted. Guard against stale nodes in three places: - promote(): skip setting resumeFrom when prevLead has a disconnected instance and no snapshot (zombie from external removal) - relegate(): skip disconnected candidates when finding a new lead - add(): prune zombie members (but preserve lead/prevLead for the current animation cycle) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Bumps [next](https://github.com/vercel/next.js) from 15.4.10 to 15.5.10. - [Release notes](https://github.com/vercel/next.js/releases) - [Changelog](https://github.com/vercel/next.js/blob/canary/release.js) - [Commits](vercel/next.js@v15.4.10...v15.5.10) --- updated-dependencies: - dependency-name: next dependency-version: 15.5.10 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com>
Fix stale shared layout nodes during SPA navigations
…next-15.5.10 chore(deps): bump next from 15.4.10 to 15.5.10
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
See Commits and Changes for more details.
Created by
pull[bot] (v2.0.0-alpha.4)
Can you help keep this open source service alive? 💖 Please sponsor : )