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