UNPKG

jotai

Version:

👻 Next gen state management that will spook you

2 lines (1 loc) • 704 B
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("jotai-zustand")):"function"==typeof define&&define.amd?define(["exports","jotai-zustand"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).jotaiZustand={},e.JotaiZustand)}(this,(function(e,t){"use strict";function n(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var o=n(t);e.atomWithStore=function(){return console.warn("[DEPRECATED] use `jotai-zustand` instead."),o.atomWithStore.apply(o,arguments)}}));