angular/packages/platform-server/test
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
..
BUILD.bazel refactor(core): internal tracker of pending tasks during initial rendering (#49576) 2023-03-28 16:19:31 -07:00
hydration_spec.ts refactor(core): hydrate components of the same type used with and without ngSkipHydration (#49943) 2023-04-20 14:50:32 -07:00
integration_spec.ts test: refactor platform-server tests to use async/await (#49855) 2023-04-17 14:07:34 +00:00
transfer_state_spec.ts feat(core): expose makeStateKey, StateKey and TransferState (#49563) 2023-03-29 10:18:02 -07:00