react-global-state-hooks
Version:
This is a package to easily handling global-state across your react components No-redux, No-context.
1 lines • 4.11 kB
JavaScript
var e,t;e=this,t=(e,t,r,o,a,l,n,s,u,i,c,b,S)=>(()=>{"use strict";var j={352:t=>{t.exports=e},674:e=>{e.exports=t},842:e=>{e.exports=r},963:e=>{e.exports=o},109:e=>{e.exports=a},897:e=>{e.exports=l},664:e=>{e.exports=n},182:e=>{e.exports=s},682:e=>{e.exports=u},286:e=>{e.exports=i},865:e=>{e.exports=c},69:e=>{e.exports=b},503:e=>{e.exports=S}},g={};function m(e){var t=g[e];if(void 0!==t)return t.exports;var r=g[e]={exports:{}};return j[e](r,r.exports,m),r.exports}var p={};return(()=>{var e=p;Object.defineProperty(e,"__esModule",{value:!0}),e.generateStackHash=e.setLocalStorageItem=e.getLocalStorageItem=e.createCustomGlobalState=e.createGlobalState=e.GlobalStoreAbstract=e.GlobalStore=e.useStableState=e.uniqueSymbol=e.isRecord=e.throwWrongKeyOnActionCollectionConfig=e.uniqueId=e.shallowCompare=void 0;var t=m(682);Object.defineProperty(e,"shallowCompare",{enumerable:!0,get:function(){return t.shallowCompare}});var r=m(865);Object.defineProperty(e,"uniqueId",{enumerable:!0,get:function(){return r.uniqueId}});var o=m(286);Object.defineProperty(e,"throwWrongKeyOnActionCollectionConfig",{enumerable:!0,get:function(){return o.throwWrongKeyOnActionCollectionConfig}});var a=m(664);Object.defineProperty(e,"isRecord",{enumerable:!0,get:function(){return a.isRecord}});var l=m(69);Object.defineProperty(e,"uniqueSymbol",{enumerable:!0,get:function(){return l.uniqueSymbol}});var n=m(503);Object.defineProperty(e,"useStableState",{enumerable:!0,get:function(){return n.useStableState}});var s=m(352);Object.defineProperty(e,"GlobalStore",{enumerable:!0,get:function(){return s.GlobalStore}});var u=m(674);Object.defineProperty(e,"GlobalStoreAbstract",{enumerable:!0,get:function(){return u.GlobalStoreAbstract}});var i=m(963);Object.defineProperty(e,"createGlobalState",{enumerable:!0,get:function(){return i.createGlobalState}});var c=m(842);Object.defineProperty(e,"createCustomGlobalState",{enumerable:!0,get:function(){return c.createCustomGlobalState}});var b=m(897);Object.defineProperty(e,"getLocalStorageItem",{enumerable:!0,get:function(){return b.getLocalStorageItem}});var S=m(182);Object.defineProperty(e,"setLocalStorageItem",{enumerable:!0,get:function(){return S.setLocalStorageItem}});var j=m(109);Object.defineProperty(e,"generateStackHash",{enumerable:!0,get:function(){return j.generateStackHash}})})(),p})(),"object"==typeof exports&&"object"==typeof module?module.exports=t(require("./GlobalStore.js"),require("./GlobalStoreAbstract.js"),require("./createCustomGlobalState.js"),require("./createGlobalState.js"),require("./generateStackHash.js"),require("./getLocalStorageItem.js"),require("./isRecord.js"),require("./setLocalStorageItem.js"),require("./shallowCompare.js"),require("./throwWrongKeyOnActionCollectionConfig.js"),require("./uniqueId.js"),require("./uniqueSymbol.js"),require("./useStableState.js")):"function"==typeof define&&define.amd?define(["./GlobalStore.js","./GlobalStoreAbstract.js","./createCustomGlobalState.js","./createGlobalState.js","./generateStackHash.js","./getLocalStorageItem.js","./isRecord.js","./setLocalStorageItem.js","./shallowCompare.js","./throwWrongKeyOnActionCollectionConfig.js","./uniqueId.js","./uniqueSymbol.js","./useStableState.js"],t):"object"==typeof exports?exports["react-global-state-hooks"]=t(require("./GlobalStore.js"),require("./GlobalStoreAbstract.js"),require("./createCustomGlobalState.js"),require("./createGlobalState.js"),require("./generateStackHash.js"),require("./getLocalStorageItem.js"),require("./isRecord.js"),require("./setLocalStorageItem.js"),require("./shallowCompare.js"),require("./throwWrongKeyOnActionCollectionConfig.js"),require("./uniqueId.js"),require("./uniqueSymbol.js"),require("./useStableState.js")):e["react-global-state-hooks"]=t(e["./GlobalStore.js"],e["./GlobalStoreAbstract.js"],e["./createCustomGlobalState.js"],e["./createGlobalState.js"],e["./generateStackHash.js"],e["./getLocalStorageItem.js"],e["./isRecord.js"],e["./setLocalStorageItem.js"],e["./shallowCompare.js"],e["./throwWrongKeyOnActionCollectionConfig.js"],e["./uniqueId.js"],e["./uniqueSymbol.js"],e["./useStableState.js"]);