MCPcopy
hub / github.com/sveltejs/svelte / run_hydratables_init

Function run_hydratables_init

packages/svelte/tests/runtime-legacy/shared.ts:490–497  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

488 };
489
490 const run_hydratables_init = () => {
491 if (variant !== 'hydrate') return;
492 const script = [...document.head.querySelectorAll('script').values()].find((script) =>
493 script.textContent?.includes('window.__svelte ??= {}')
494 )?.textContent;
495 if (!script) return;
496 (0, eval)(script);
497 };
498
499 if (runes) {
500 props = proxy({ ...(config.props || {}) });

Callers 1

run_test_variantFunction · 0.85

Calls 1

valuesMethod · 0.45

Tested by

no test coverage detected