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

Function eager_effect

packages/svelte/src/internal/client/reactivity/effects.js:254–256  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

252
253/** @param {() => void | (() => void)} fn */
254export function eager_effect(fn) {
255 return create_effect(EAGER_EFFECT, fn);
256}
257
258/**
259 * Internal representation of `$effect.root(...)`

Callers 2

eagerFunction · 0.90
inspectFunction · 0.90

Calls 1

create_effectFunction · 0.85

Tested by

no test coverage detected