UNPKG

780 BJavaScriptView Raw
1'use strict';
2
3var JotaiRedux = require('jotai-redux');
4
5function _interopNamespaceDefault(e) {
6 var n = Object.create(null);
7 if (e) {
8 Object.keys(e).forEach(function (k) {
9 if (k !== 'default') {
10 var d = Object.getOwnPropertyDescriptor(e, k);
11 Object.defineProperty(n, k, d.get ? d : {
12 enumerable: true,
13 get: function () { return e[k]; }
14 });
15 }
16 });
17 }
18 n.default = e;
19 return Object.freeze(n);
20}
21
22var JotaiRedux__namespace = /*#__PURE__*/_interopNamespaceDefault(JotaiRedux);
23
24var atomWithStore = function atomWithStore() {
25 console.warn('[DEPRECATED] use `jotai-redux` instead.');
26 return JotaiRedux__namespace.atomWithStore.apply(JotaiRedux__namespace, arguments);
27};
28
29exports.atomWithStore = atomWithStore;