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
OnPushcomponents that are created dynamically now
only have their host bindings refreshed andngDoCheck runduring 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 thengDoCheckfunction. This is
rarely encountered but can happen if code has a handle on the
ComponentRefinstance and updates values read in theOnPush
component template without then calling eithermarkForCheckor
detectChangeson that component'sChangeDetectorRef.
router
urlHandlingStrategyhas been removed from the Router public API.
This should instead be configured through the provideRouter or RouterModule.forRoot APIs.