Skip to content

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

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

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
@hi-ogawa

hi-ogawa commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

I inferred the high level motivation of this PR as a following issue:

I don't think hoisted function name is an actual requirement for this topic. Instead, the framework can generate a proper cache key and coordinate invalidation. Haven't fully fleshed out but I will try to illustrate the idea in #1411.

Please let me know if I misread the context.

@hi-ogawa hi-ogawa closed this Aug 6, 2026
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.

2 participants