Fix: css in next/dynamic component in edge runtime (#64382)#1
Fix: css in next/dynamic component in edge runtime (#64382)#1MitchLewis930 wants to merge 1 commit intopr_031_beforefrom
Conversation
### What Wrap async local storage for all edge runtime routes in adapter Basically fixed the case reported in [this tweet](https://x.com/keegandonley/status/1778538456458854880) ### Why We're relying on the ALS for dynamic css preloading but we didn't wrap the ALS for request handlers for edge. So if you have CSS imports in `next/dynamic` in edge runtime it would break. Closes NEXT-3085
📝 WalkthroughWalkthroughAdapter now ensures non-middleware requests execute within RequestAsyncStorageWrapper.wrap; preload-css switches to a local getExpectedRequestStore function call with a string identifier; an edge-runtime test page and a matching test asserting CSS behavior were added. Changes
Sequence Diagram(s)mermaid Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
No actionable comments were generated in the recent review. 🎉 📜 Recent review detailsConfiguration used: Organization UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (4)
🧰 Additional context used🧬 Code graph analysis (2)packages/next/src/server/web/adapter.ts (1)
packages/next/src/shared/lib/lazy-dynamic/preload-css.tsx (2)
🔇 Additional comments (4)
✏️ Tip: You can disable this entire section by setting Comment |
|
@coderabbitai full review |
✅ Actions performedFull review triggered. |
PR_031
Summary by CodeRabbit
New Features
Bug Fixes
Tests