Files
Sveltekit/node_modules/.vite/deps/chunk-6VYHLW26.js
T
2026-01-22 17:13:23 -06:00

28 lines
513 B
JavaScript

import {
createSubscriber
} from "./chunk-5MWODAS5.js";
// node_modules/svelte/src/reactivity/reactive-value.js
var ReactiveValue = class {
#fn;
#subscribe;
/**
*
* @param {() => T} fn
* @param {(update: () => void) => void} onsubscribe
*/
constructor(fn, onsubscribe) {
this.#fn = fn;
this.#subscribe = createSubscriber(onsubscribe);
}
get current() {
this.#subscribe();
return this.#fn();
}
};
export {
ReactiveValue
};
//# sourceMappingURL=chunk-6VYHLW26.js.map