UNPKG

filepond

Version:

FilePond, where files go to stretch their bits.

27 lines (26 loc) • 762 B
import { untrack as n } from "./internal/client/runtime.js"; import { tick as _ } from "./internal/client/runtime.js"; import { lifecycle_outside_component as e } from "./internal/shared/errors.js"; import { component_context as r } from "./internal/client/context.js"; import { getContext as a, setContext as k } from "./internal/client/context.js"; import { user_effect as f } from "./internal/client/reactivity/effects.js"; function c(o) { r === null && e(), f(() => { const t = n(o); if (typeof t == "function") return ( /** @type {() => void} */ t ); }); } function l(o) { r === null && e(), c(() => () => n(o)); } export { a as getContext, l as onDestroy, c as onMount, k as setContext, _ as tick, n as untrack };