UNPKG

jotai

Version:

👻 Next gen state management that will spook you

2 lines (1 loc) • 787 B
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("jotai-xstate")):"function"==typeof define&&define.amd?define(["exports","jotai-xstate"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).jotaiXstate={},e.JotaiXstate)}(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);Object.defineProperty(e,"RESTART",{enumerable:!0,get:function(){return t.RESTART}}),e.atomWithMachine=function(){return console.warn("[DEPRECATED] use `jotai-xstate` instead."),o.atomWithMachine.apply(o,arguments)}}));