UNPKG

@dr.pogodin/react-global-state

Version:
29 lines (27 loc) 1.14 kB
import GlobalState from "./GlobalState.js"; import GlobalStateProvider, { getGlobalState, getSsrContext } from "./GlobalStateProvider.js"; import SsrContext from "./SsrContext.js"; import useAsyncCollection from "./useAsyncCollection.js"; import { loadAsyncData, newAsyncDataEnvelope, useAsyncData } from "./useAsyncData.js"; import useGlobalState from "./useGlobalState.js"; export { GlobalState, GlobalStateProvider, SsrContext, getGlobalState, getSsrContext, loadAsyncData, newAsyncDataEnvelope, 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, loadAsyncData, newAsyncDataEnvelope, useAsyncCollection, useAsyncData, useGlobalState }; export function withGlobalStateType() { return api; } //# sourceMappingURL=index.js.map