mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
8ea1fb7396
This commit updates the hydration logic to handle situations where DOM nodes might end up being disconnected from the DOM tree. We serialize ids of those nodes into the hydration state transfer data and use the information to switch from hydration to the regular "creation mode" at runtime. This situation may happen during the content projection, when some nodes don't make it into one of the content projection slots (for example, when there is no default <ng-content /> slot in projector component's template). Note: we leverage the fact that we have this information available in the DOM emulation layer (in Domino) for now. Longer-term solution should not rely on the DOM emulation and only use internal data structures and state to compute this information. PR Close #49471
Angular
The sources for this package are in the main Angular repo. Please file issues and pull requests against that repo.
Usage information and reference details can be found in Angular documentation.
License: MIT