Closed as not planned
Description
Which @angular/* package(s) are the source of the bug?
platform-server
Is this a regression?
No
Description
In Angular SSR, observables are triggered (at least) twice on the server during the first page load. To demonstrate this issue, I created a fresh Angular project on StackBlitz. This only happen when running a dev server -> in prod, this behaviour doesnt happen.
Additionally, the provideAppInitializer
function is also called twice. Afterward, everything works as expected without duplicate calls.
Please provide a link to a minimal reproduction of the bug
https://stackblitz.com/~/github.com/lennybakkalian/angular-bug?file=src/app/app.component.ts
Please provide the environment you discovered this bug in (run ng version
)
Angular CLI: 19.0.4
Node: 20.17.0
Package Manager: npm 10.8.2
OS: darwin arm64
Angular: 19.0.3
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, platform-server
... router
Package Version
---------------------------------------------------------
@angular-devkit/architect 0.1900.4
@angular-devkit/build-angular 19.0.4
@angular-devkit/core 19.0.4
@angular-devkit/schematics 19.0.4
@angular/cli 19.0.4
@angular/ssr 19.0.4
@schematics/angular 19.0.4
rxjs 7.8.1
typescript 5.6.3
zone.js 0.15.0
Metadata
Metadata
Assignees
Labels
No labels