angular/packages/core
Andrew Kushnir bbc2efcda2 refactor(core): hydrate components of the same type used with and without ngSkipHydration (#49943)
This commit updates hydration logic to hanlde a case when the same component is used multiple times in a template and in some of those cases, component is opted-out of hydration, for example:

```
<cmp ngSkipHydration />
<cmp />
```

Previously, the first occurrence of the `<cmp>` would result in storing the `ssrId` on a TView as `null` (since hydration is disabled for the component) and the second component instance reused the `null` as a value, thus also skipping hydration.

With the changes from this commit, the `ssrId` would be set when we come across a hydratable instance. We also make sure that the `ssrId` value never changes after we first set it to a non-`null` value.

PR Close #49943
2023-04-20 14:50:32 -07:00
..
global build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
rxjs-interop fix(core): ensure takeUntilDestroyed unregisters onDestroy listener on unsubscribe (#49901) 2023-04-19 19:55:09 +00:00
schematics refactor(migrations): log a link to the standalone migration (#49752) 2023-04-10 09:04:02 -07:00
src refactor(core): hydrate components of the same type used with and without ngSkipHydration (#49943) 2023-04-20 14:50:32 -07:00
test refactor(core): hydrate components of the same type used with and without ngSkipHydration (#49943) 2023-04-20 14:50:32 -07:00
testing refactor(core): Create TestBed injector without a module (#49864) 2023-04-19 15:30:23 +00:00
BUILD.bazel build(core): introduce @angular/core/rxjs-interop entrypoint (#49154) 2023-03-30 09:44:38 -07:00
index.ts refactor(core): made comment structure consistent in index.ts (#43684) 2021-10-21 18:39:58 +00:00
package.json build: update minimum supported Node version from 16.13.0 -> 16.14.0 (#49771) 2023-04-11 07:56:31 -07:00
PACKAGE.md docs: add package doc files (#26047) 2018-10-05 15:42:14 -07:00
public_api.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00