mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
SSR generated component styles used in development environments will add external styles via link elements to the HTML. However, the runtime would previously not collect these link elements for reuse with rendered components. This would result in two copies of the link elements present in the DOM. In isolation this is not problematic as it is only present in development mode. Unfortunately, the Vite-based CSS HMR functionality used by the Angular CLI only updates the first stylesheet it finds and leaves other instances of the stylesheet in place. This behavior causes the styles to be left in an inconsistent state. This could be considered a defect within Vite as it should update all relevant styles to maintain consistency but ideally there should not be two instances in the Angular SSR case. To avoid the Vite issue, the runtime will now collect SSR generated external styles and reuse them. PR Close #59031 |
||
|---|---|---|
| .. | ||
| browser | ||
| dom | ||
| security | ||
| static_assets | ||
| BUILD.bazel | ||
| hydration_spec.ts | ||
| testing_public_spec.ts | ||