UNPKG

@dr.pogodin/react-global-state

Version:
28 lines (26 loc) 1.07 kB
import GlobalState from "./GlobalState"; import GlobalStateProvider, { getGlobalState, getSsrContext } from "./GlobalStateProvider"; import SsrContext from "./SsrContext"; import useAsyncCollection from "./useAsyncCollection"; import { newAsyncDataEnvelope, useAsyncData } from "./useAsyncData"; import useGlobalState from "./useGlobalState"; export { getGlobalState, getSsrContext, GlobalState, GlobalStateProvider, newAsyncDataEnvelope, SsrContext, useAsyncCollection, useAsyncData, useGlobalState }; // eslint-disable-next-line @typescript-eslint/consistent-type-definitions const api = { // TODO: I am puzzled, why ESLint eforces this sorting order as alphabetical? // Perhaps, we should tune something in its config settings, as it seems to mix // some extra sorting logic, which I am not sure I like. GlobalState, GlobalStateProvider, SsrContext, getGlobalState, getSsrContext, newAsyncDataEnvelope, useAsyncCollection, useAsyncData, useGlobalState }; export function withGlobalStateType() { return api; } //# sourceMappingURL=index.js.map