UNPKG

react-global-state-hooks

Version:

This is a package to easily handling global-state across your react components

14 lines (13 loc) 1.09 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, type BrandedId } 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 { default as GlobalStore } from './GlobalStore'; export { createGlobalState, type InferActionsType, type InferStateApi, AnyActions, } from './createGlobalState';