UNPKG

react-global-state-hooks

Version:

This is a package to easily handling global-state across your react components No-redux, No-context.

17 lines (16 loc) 1.21 kB
/** * By handling the same structure as the original library, * We can add the specific overrides for web while keeping the modularity of the library. */ export type { StateApi, ObservableFragment, MetadataSetter, StateChanges, StoreTools, ActionCollectionResult, GlobalStoreCallbacks, UseHookOptions, UnsubscribeCallback, SubscribeCallbackConfig, SubscribeCallback, BaseMetadata, MetadataGetter, SelectorCallback, SubscriberParameters, SubscriptionCallback, StateHook, ActionCollectionConfig, } from './types'; export { shallowCompare } from './shallowCompare'; export { uniqueId } from './uniqueId'; export { throwWrongKeyOnActionCollectionConfig } from './throwWrongKeyOnActionCollectionConfig'; export { isRecord } from './isRecord'; export { type ContextProvider, type ContextHook, type InferContextApi, createContext } from './createContext'; export { type LocalStorageConfig } from './types'; export { GlobalStore } from './GlobalStore'; export { GlobalStoreAbstract } from './GlobalStoreAbstract'; export { createGlobalState, type InferActionsType } from './createGlobalState'; export { getLocalStorageItem } from './getLocalStorageItem'; export { setLocalStorageItem } from './setLocalStorageItem';