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

Function effect

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

Source from the content-addressed store, hash-verified

298 * @returns {Effect}
299 */
300export function effect(fn) {
301 return create_effect(EFFECT, fn);
302}
303
304/**
305 * Internal representation of `$: ..`

Callers 12

append_stylesFunction · 0.90
actionFunction · 0.90
attribute_effectFunction · 0.90
transitionFunction · 0.90
attachFunction · 0.90
bind_select_valueFunction · 0.90
bind_playback_rateFunction · 0.90
bind_pausedFunction · 0.90
bind_element_sizeFunction · 0.90
bind_thisFunction · 0.90
bind_window_scrollFunction · 0.90
test.tsFile · 0.90

Calls 1

create_effectFunction · 0.85

Tested by

no test coverage detected