Which @angular/* package(s) are the source of the bug?
core
Is this a regression?
Yes
Description
With other defer/hydrate commands, if the command is misspelled, a compilation error is thrown.
@defer(hydrate hover) -> error
@defer(hydrate on hovered) -> error
When using @defer(hydrate never), if there are additional characters after never, no compilation error is thrown and it still behaves as if hydrate never was used.
@defer(hydrate nevermind) {
<app-heavy />
}
@defer(hydrate never, and thank you) {
<app-heavy />
}
Please provide a link to a minimal reproduction of the bug
github.com/brandonroberts/angular-incremental-hydration-never
Please provide the exception or error you saw
None
Please provide the environment you discovered this bug in (run ng version)
Angular CLI: 19.0.0-next.13
Node: 20.18.0
Package Manager: npm 10.8.2
OS: darwin arm64
Angular: 19.1.0-next.0+sha-2aa9f8b
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, platform-server
... router
Package Version
@angular-devkit/architect 0.1900.0-next.13
@angular-devkit/build-angular 19.0.0-next.13
@angular-devkit/core 19.0.0-next.13
@angular-devkit/schematics 19.0.0-next.13
@angular/cli 19.0.0-next.13
@angular/ssr 19.0.0-next.13
@schematics/angular 19.0.0-next.13
rxjs 7.8.1
typescript 5.5.4
zone.js 0.15.0
Anything else?
To reproduce the issue
- Clone the repo
- run
npm install
- run
ng serve
- Note no compilation error is thrown
- Navigate to http://localhost:4200/about
- Click on the
Click Me button. Nothing happens because its still using hydrate never
Which @angular/* package(s) are the source of the bug?
core
Is this a regression?
Yes
Description
With other defer/hydrate commands, if the command is misspelled, a compilation error is thrown.
@defer(hydrate hover)-> error@defer(hydrate on hovered)-> errorWhen using
@defer(hydrate never), if there are additional characters afternever, no compilation error is thrown and it still behaves as ifhydrate neverwas used.@defer(hydrate nevermind) { <app-heavy /> } @defer(hydrate never, and thank you) { <app-heavy /> }Please provide a link to a minimal reproduction of the bug
github.com/brandonroberts/angular-incremental-hydration-never
Please provide the exception or error you saw
None
Please provide the environment you discovered this bug in (run
ng version)Angular CLI: 19.0.0-next.13
Node: 20.18.0
Package Manager: npm 10.8.2
OS: darwin arm64
Angular: 19.1.0-next.0+sha-2aa9f8b
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, platform-server
... router
Package Version
@angular-devkit/architect 0.1900.0-next.13
@angular-devkit/build-angular 19.0.0-next.13
@angular-devkit/core 19.0.0-next.13
@angular-devkit/schematics 19.0.0-next.13
@angular/cli 19.0.0-next.13
@angular/ssr 19.0.0-next.13
@schematics/angular 19.0.0-next.13
rxjs 7.8.1
typescript 5.5.4
zone.js 0.15.0
Anything else?
To reproduce the issue
npm installng serveClick Mebutton. Nothing happens because its still usinghydrate never