Skip to content

feat(rsc): support stable inline action names#1257

Open
james-elicx wants to merge 2 commits into
vitejs:mainfrom
james-elicx:codex/rsc-stable-hoist-names
Open

feat(rsc): support stable inline action names#1257
james-elicx wants to merge 2 commits into
vitejs:mainfrom
james-elicx:codex/rsc-stable-hoist-names

Conversation

@james-elicx

Copy link
Copy Markdown
Contributor

Extracted from #1246.

Inline action hoist names are currently based on traversal order, so inserting an unrelated action renumbers existing server-reference IDs.

This adds an opt-in stableName transform option using a content-derived hash with duplicate disambiguation. Tests verify stability across unrelated insertions, changes when the function changes, and deterministic duplicate handling.

@james-elicx james-elicx marked this pull request as ready for review June 30, 2026 23:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant