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

Function block

packages/svelte/src/internal/client/reactivity/effects.js:413–419  ·  view source on GitHub ↗
(fn, flags = 0)

Source from the content-addressed store, hash-verified

411 * @param {number} flags
412 */
413export function block(fn, flags = 0) {
414 var effect = create_effect(BLOCK_EFFECT | flags, fn);
415 if (DEV) {
416 effect.dev_stack = dev_stack;
417 }
418 return effect;
419}
420
421/**
422 * @param {(() => void)} fn

Callers 10

elementFunction · 0.90
eachFunction · 0.90
await_blockFunction · 0.90
keyFunction · 0.90
componentFunction · 0.90
snippetFunction · 0.90
if_blockFunction · 0.90
headFunction · 0.90
constructorMethod · 0.90
wrapperFunction · 0.90

Calls 1

create_effectFunction · 0.85

Tested by

no test coverage detected