UNPKG

graphql-react

Version:

A GraphQL client for React using modern context and hooks APIs that’s lightweight (< 4 kB) but powerful; the first Relay and Apollo alternative with server side rendering.

19 lines (13 loc) 428 B
// @ts-check import React from "react"; /** @typedef {import("./Loading.mjs").default} Loading */ /** * [React context](https://reactjs.org/docs/context.html) for a * {@linkcode Loading} instance. * @type {React.Context<Loading | undefined>} */ const LoadingContext = React.createContext( /** @type {Loading | undefined} */ (undefined) ); LoadingContext.displayName = "LoadingContext"; export default LoadingContext;