17.0.0-next.3 (2023-09-06)
core
Commit | Description |
---|---|
Respect OnPush change detection strategy for dynamically created components (#51356) | |
generate arrow functions for pure function calls (#51668) |
router
Commit | Description |
---|---|
Ensure title observable gets latest values (#51561) | |
Remove urlHandlingStrategy from public Router properties (#51631)
|
Breaking Changes
core
OnPush
components that are created dynamically now
only have their host bindings refreshed andngDoCheck run
during change
detection if they are dirty.
Previously, a bug in the change detection would result in theOnPush
configuration of dynamically created components to be ignored when
executing host bindings and thengDoCheck
function. This is
rarely encountered but can happen if code has a handle on the
ComponentRef
instance and updates values read in theOnPush
component template without then calling eithermarkForCheck
or
detectChanges
on that component'sChangeDetectorRef
.
router
urlHandlingStrategy
has been removed from the Router public API.
This should instead be configured through the provideRouter or RouterModule.forRoot APIs.