next.js
beb2ec17 - refactor: move collectedInlineCss to AppRenderContext

Commit
133 days ago
refactor: move collectedInlineCss to AppRenderContext Eliminates prop drilling of collectedInlineCss by adding it to ctx (AppRenderContext). The CSS collector is now initialized once in the ctx object and accessed via ctx.collectedInlineCss throughout the render pipeline. Changes: - Add collectedInlineCss field to AppRenderContext type - Initialize collectedInlineCss in ctx creation (single location) - Remove separate variable declarations from renderToStream/prerenderToStream - Remove collectedInlineCss parameter from getRSCPayload, createComponentTree, getLayerAssets, renderCssResource, and createComponentStylesAndScripts - Update ~30 call sites to use ctx.collectedInlineCss Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Author
Parents
Loading