UNPKG

ink

Version:
14 lines 542 B
import { createContext } from 'react'; /** `AppContext` is a React context that exposes lifecycle methods for the app. */ // Keep the default value typed so `useApp()` preserves the public `exit(errorOrResult?)` signature. const defaultValue = { exit(_errorOrResult) { }, async waitUntilRenderFlush() { }, }; // eslint-disable-next-line @typescript-eslint/naming-convention const AppContext = createContext(defaultValue); AppContext.displayName = 'InternalAppContext'; export default AppContext; //# sourceMappingURL=AppContext.js.map