UNPKG

jotai

Version:

👻 Next gen state management that will spook you

34 lines (28 loc) • 1.19 kB
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('jotai-redux')) : typeof define === 'function' && define.amd ? define(['exports', 'jotai-redux'], factory) : (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.jotaiRedux = {}, global.JotaiRedux)); })(this, (function (exports, JotaiRedux) { 'use strict'; function _interopNamespaceDefault(e) { var n = Object.create(null); if (e) { Object.keys(e).forEach(function (k) { if (k !== 'default') { var d = Object.getOwnPropertyDescriptor(e, k); Object.defineProperty(n, k, d.get ? d : { enumerable: true, get: function () { return e[k]; } }); } }); } n.default = e; return Object.freeze(n); } var JotaiRedux__namespace = /*#__PURE__*/_interopNamespaceDefault(JotaiRedux); var atomWithStore = function atomWithStore() { console.warn('[DEPRECATED] use `jotai-redux` instead.'); return JotaiRedux__namespace.atomWithStore.apply(JotaiRedux__namespace, arguments); }; exports.atomWithStore = atomWithStore; }));