MCPcopy Index your code
hub / github.com/angular/angular / enableHydrationRuntimeSupport

Function enableHydrationRuntimeSupport

packages/core/src/hydration/api.ts:97–109  ·  view source on GitHub ↗

* Brings the necessary hydration code in tree-shakable manner. * The code is only present when the `provideClientHydration` is * invoked. Otherwise, this code is tree-shaken away during the * build optimization step. * * This technique allows us to swap implementations of methods so * tree sha

()

Source from the content-addressed store, hash-verified

95 * supports hydration only when enabled.
96 */
97function enableHydrationRuntimeSupport() {
98 if (!isHydrationSupportEnabled) {
99 isHydrationSupportEnabled = true;
100 enableRetrieveHydrationInfoImpl();
101 enableLocateOrCreateElementNodeImpl();
102 enableLocateOrCreateTextNodeImpl();
103 enableLocateOrCreateElementContainerNodeImpl();
104 enableLocateOrCreateContainerAnchorImpl();
105 enableLocateOrCreateContainerRefImpl();
106 enableFindMatchingDehydratedViewImpl();
107 enableApplyRootElementTransformImpl();
108 }
109}
110
111/**
112 * Brings the necessary i18n hydration code in tree-shakable manner.

Callers 1

withDomHydrationFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…