UNPKG

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 3.27 kB
var e,r;e=this,r=(e,r,t,o,n,a,s,i,c,l)=>(()=>{"use strict";var u={78:r=>{r.exports=e},114:e=>{e.exports=r},361:e=>{e.exports=t},487:e=>{e.exports=o},512:e=>{e.exports=n},623:e=>{e.exports=a},670:e=>{e.exports=s},673:e=>{e.exports=i},778:e=>{e.exports=c},868:e=>{e.exports=l}},g={};function j(e){var r=g[e];if(void 0!==r)return r.exports;var t=g[e]={exports:{}};return u[e](t,t.exports,j),t.exports}var p={};return(()=>{var e=p;Object.defineProperty(e,"__esModule",{value:!0}),e.asyncStorageWrapper=e.setAsyncStorageItem=e.getAsyncStorageItem=e.createGlobalState=e.GlobalStore=e.createContext=e.isRecord=e.throwWrongKeyOnActionCollectionConfig=e.uniqueId=e.shallowCompare=void 0;var r=j(673);Object.defineProperty(e,"shallowCompare",{enumerable:!0,get:function(){return r.shallowCompare}});var t=j(78);Object.defineProperty(e,"uniqueId",{enumerable:!0,get:function(){return t.uniqueId}});var o=j(361);Object.defineProperty(e,"throwWrongKeyOnActionCollectionConfig",{enumerable:!0,get:function(){return o.throwWrongKeyOnActionCollectionConfig}});var n=j(487);Object.defineProperty(e,"isRecord",{enumerable:!0,get:function(){return n.isRecord}});var a=j(623);Object.defineProperty(e,"createContext",{enumerable:!0,get:function(){return a.createContext}});var s=j(778);Object.defineProperty(e,"GlobalStore",{enumerable:!0,get:function(){return s.GlobalStore}});var i=j(670);Object.defineProperty(e,"createGlobalState",{enumerable:!0,get:function(){return i.createGlobalState}});var c=j(512);Object.defineProperty(e,"getAsyncStorageItem",{enumerable:!0,get:function(){return c.getAsyncStorageItem}});var l=j(868);Object.defineProperty(e,"setAsyncStorageItem",{enumerable:!0,get:function(){return l.setAsyncStorageItem}});var u=j(114);Object.defineProperty(e,"asyncStorageWrapper",{enumerable:!0,get:function(){return u.asyncStorageWrapper}})})(),p})(),"object"==typeof exports&&"object"==typeof module?module.exports=r(require("./uniqueId.js"),require("./asyncStorageWrapper.js"),require("./throwWrongKeyOnActionCollectionConfig.js"),require("./isRecord.js"),require("./getAsyncStorageItem.js"),require("./createContext.js"),require("./createGlobalState.js"),require("./shallowCompare.js"),require("./GlobalStore.js"),require("./setAsyncStorageItem.js")):"function"==typeof define&&define.amd?define(["./uniqueId.js","./asyncStorageWrapper.js","./throwWrongKeyOnActionCollectionConfig.js","./isRecord.js","./getAsyncStorageItem.js","./createContext.js","./createGlobalState.js","./shallowCompare.js","./GlobalStore.js","./setAsyncStorageItem.js"],r):"object"==typeof exports?exports["react-native-global-state-hooks"]=r(require("./uniqueId.js"),require("./asyncStorageWrapper.js"),require("./throwWrongKeyOnActionCollectionConfig.js"),require("./isRecord.js"),require("./getAsyncStorageItem.js"),require("./createContext.js"),require("./createGlobalState.js"),require("./shallowCompare.js"),require("./GlobalStore.js"),require("./setAsyncStorageItem.js")):e["react-native-global-state-hooks"]=r(e["./uniqueId.js"],e["./asyncStorageWrapper.js"],e["./throwWrongKeyOnActionCollectionConfig.js"],e["./isRecord.js"],e["./getAsyncStorageItem.js"],e["./createContext.js"],e["./createGlobalState.js"],e["./shallowCompare.js"],e["./GlobalStore.js"],e["./setAsyncStorageItem.js"]);