UNPKG

@zedux/stores

Version:

The legacy composable store model of Zedux

12 lines (11 loc) 382 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.atom = void 0; const AtomTemplate_1 = require("./AtomTemplate"); const atom = (key, value, config) => { if (true /* DEV */ && !key) { throw new TypeError('Zedux: All atoms must have a key'); } return new AtomTemplate_1.AtomTemplate(key, value, config); }; exports.atom = atom;