-
-
Notifications
You must be signed in to change notification settings - Fork 10.8k
Open
Description
Reproduction
https://stackblitz.com/edit/github-sctnoygg-bjyrxehw?initialpath=slug
System Info
System:
OS: macOS 26.2
CPU: (12) arm64 Apple M4 Pro
Memory: 935.80 MB / 48.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 25.2.1 - /opt/homebrew/bin/node
npm: 11.6.2 - /opt/homebrew/bin/npm
pnpm: 10.27.0 - /opt/homebrew/bin/pnpm
Browsers:
Chrome: 144.0.7559.97
Chrome Canary: 146.0.7652.0
Firefox Nightly: 149.0a1
Safari: 26.2Used Package Manager
npm
Expected Behavior
I expect the CSS file WithStyles.css only to be downloaded once:
Actual Behavior
The CSS file is downloaded twice.
The behavior seems to be correct as soon as I remove the component import in routes/$slug/layout.tsx or remove the index route in routes.ts.
The regression started with [email protected].
annez, thomaswelton and thdk