MCPcopy
hub / github.com/algolia/autocomplete / runEffect

Function runEffect

packages/autocomplete-js/src/createEffectWrapper.ts:14–18  ·  view source on GitHub ↗
(fn: EffectFn)

Source from the content-addressed store, hash-verified

12 let cleanups: CleanupFn[] = [];
13
14 function runEffect(fn: EffectFn) {
15 effects.push(fn);
16 const effectCleanup = fn();
17 cleanups.push(effectCleanup);
18 }
19
20 return {
21 runEffect,

Callers 3

autocompleteFunction · 0.85
runEffectsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected