Skip to content

fix(plugin-rsc): ensure serverResources CSS precedence is registered first#1099

Draft
iamchanii wants to merge 1 commit intovitejs:mainfrom
iamchanii:main
Draft

fix(plugin-rsc): ensure serverResources CSS precedence is registered first#1099
iamchanii wants to merge 1 commit intovitejs:mainfrom
iamchanii:main

Conversation

@iamchanii
Copy link

@iamchanii iamchanii commented Feb 6, 2026

Fix #1100

…first

Preinitialize serverResources CSS before client reference CSS to ensure
React discovers the "importer-resources" precedence group first. This
prevents CSS URLs from being deduplicated under the wrong precedence
group when client reference load() is called before the RSC stream's
Resources component renders on the first request.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
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.

CSS precedence ordering between serverResources and clientReferenceDeps is non-deterministic during SSR

1 participant