UNPKG

787 BJavaScriptView Raw
1'use strict';
2
3var JotaiValtio = require('jotai-valtio');
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 JotaiValtio__namespace = /*#__PURE__*/_interopNamespaceDefault(JotaiValtio);
23
24var atomWithProxy = function atomWithProxy() {
25 console.warn('[DEPRECATED] use `jotai-valtio` instead.');
26 return JotaiValtio__namespace.atomWithProxy.apply(JotaiValtio__namespace, arguments);
27};
28
29exports.atomWithProxy = atomWithProxy;