UNPKG

@xoid/svelte

Version:

Framework-agnostic state management library designed for simplicity and scalability

11 lines (7 loc) 251 B
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); function useAtom(atom, withActions) { const store = { subscribe: atom.watch }; return withActions ? [store, atom.actions] : store; } exports.useAtom = useAtom;