react-native-global-state-hooks
Version:
This is a package to easily handling global-state across your react-native-components No-redux... The library now includes @react-native-async-storage/async-storage to persist your state across sessions... if you want to keep using the old version without
1 lines • 4.42 kB
JavaScript
var e,t;e=this,t=(e,t,r,o,a,n,s,c,l,u,i,b,j,S)=>(()=>{"use strict";var g={45:t=>{t.exports=e},78:e=>{e.exports=t},114:e=>{e.exports=r},361:e=>{e.exports=o},417:e=>{e.exports=a},487:e=>{e.exports=n},512:e=>{e.exports=s},623:e=>{e.exports=c},670:e=>{e.exports=l},673:e=>{e.exports=u},778:e=>{e.exports=i},804:e=>{e.exports=b},868:e=>{e.exports=j},923:e=>{e.exports=S}},p={};function y(e){var t=p[e];if(void 0!==t)return t.exports;var r=p[e]={exports:{}};return g[e](r,r.exports,y),r.exports}var f={};return(()=>{var e=f;Object.defineProperty(e,"__esModule",{value:!0}),e.generateStackHash=e.asyncStorageWrapper=e.setAsyncStorageItem=e.getAsyncStorageItem=e.createCustomGlobalState=e.createGlobalState=e.GlobalStoreAbstract=e.GlobalStore=e.createContext=e.useStableState=e.isRecord=e.throwWrongKeyOnActionCollectionConfig=e.uniqueId=e.shallowCompare=void 0;var t=y(673);Object.defineProperty(e,"shallowCompare",{enumerable:!0,get:function(){return t.shallowCompare}});var r=y(78);Object.defineProperty(e,"uniqueId",{enumerable:!0,get:function(){return r.uniqueId}});var o=y(361);Object.defineProperty(e,"throwWrongKeyOnActionCollectionConfig",{enumerable:!0,get:function(){return o.throwWrongKeyOnActionCollectionConfig}});var a=y(487);Object.defineProperty(e,"isRecord",{enumerable:!0,get:function(){return a.isRecord}});var n=y(923);Object.defineProperty(e,"useStableState",{enumerable:!0,get:function(){return n.useStableState}});var s=y(623);Object.defineProperty(e,"createContext",{enumerable:!0,get:function(){return s.createContext}});var c=y(778);Object.defineProperty(e,"GlobalStore",{enumerable:!0,get:function(){return c.GlobalStore}});var l=y(804);Object.defineProperty(e,"GlobalStoreAbstract",{enumerable:!0,get:function(){return l.GlobalStoreAbstract}});var u=y(670);Object.defineProperty(e,"createGlobalState",{enumerable:!0,get:function(){return u.createGlobalState}});var i=y(417);Object.defineProperty(e,"createCustomGlobalState",{enumerable:!0,get:function(){return i.createCustomGlobalState}});var b=y(512);Object.defineProperty(e,"getAsyncStorageItem",{enumerable:!0,get:function(){return b.getAsyncStorageItem}});var j=y(868);Object.defineProperty(e,"setAsyncStorageItem",{enumerable:!0,get:function(){return j.setAsyncStorageItem}});var S=y(114);Object.defineProperty(e,"asyncStorageWrapper",{enumerable:!0,get:function(){return S.asyncStorageWrapper}});var g=y(45);Object.defineProperty(e,"generateStackHash",{enumerable:!0,get:function(){return g.generateStackHash}})})(),f})(),"object"==typeof exports&&"object"==typeof module?module.exports=t(require("./generateStackHash.js"),require("./uniqueId.js"),require("./asyncStorageWrapper.js"),require("./throwWrongKeyOnActionCollectionConfig.js"),require("./createCustomGlobalState.js"),require("./isRecord.js"),require("./getAsyncStorageItem.js"),require("./createContext.js"),require("./createGlobalState.js"),require("./shallowCompare.js"),require("./GlobalStore.js"),require("./GlobalStoreAbstract.js"),require("./setAsyncStorageItem.js"),require("./useStableState.js")):"function"==typeof define&&define.amd?define(["./generateStackHash.js","./uniqueId.js","./asyncStorageWrapper.js","./throwWrongKeyOnActionCollectionConfig.js","./createCustomGlobalState.js","./isRecord.js","./getAsyncStorageItem.js","./createContext.js","./createGlobalState.js","./shallowCompare.js","./GlobalStore.js","./GlobalStoreAbstract.js","./setAsyncStorageItem.js","./useStableState.js"],t):"object"==typeof exports?exports["react-native-global-state-hooks"]=t(require("./generateStackHash.js"),require("./uniqueId.js"),require("./asyncStorageWrapper.js"),require("./throwWrongKeyOnActionCollectionConfig.js"),require("./createCustomGlobalState.js"),require("./isRecord.js"),require("./getAsyncStorageItem.js"),require("./createContext.js"),require("./createGlobalState.js"),require("./shallowCompare.js"),require("./GlobalStore.js"),require("./GlobalStoreAbstract.js"),require("./setAsyncStorageItem.js"),require("./useStableState.js")):e["react-native-global-state-hooks"]=t(e["./generateStackHash.js"],e["./uniqueId.js"],e["./asyncStorageWrapper.js"],e["./throwWrongKeyOnActionCollectionConfig.js"],e["./createCustomGlobalState.js"],e["./isRecord.js"],e["./getAsyncStorageItem.js"],e["./createContext.js"],e["./createGlobalState.js"],e["./shallowCompare.js"],e["./GlobalStore.js"],e["./GlobalStoreAbstract.js"],e["./setAsyncStorageItem.js"],e["./useStableState.js"]);