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

Method subscribe

packages/svelte/src/store/public.d.ts:31–31  ·  view source on GitHub ↗

* Subscribe on value changes. * @param run subscription callback * @param invalidate cleanup callback

(this: void, run: Subscriber<T>, invalidate?: () => void)

Source from the content-addressed store, hash-verified

29 * @param invalidate cleanup callback
30 */
31 subscribe(this: void, run: Subscriber<T>, invalidate?: () => void): Unsubscriber;
32}
33
34/** Writable interface for both updating and subscribing. */

Callers 2

fromStoreFunction · 0.65
subscribe_to_storeFunction · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected