@cori-risi/cori.data.api / ApiContext

ApiContext

const ApiContext: Context<null | ApiContextType>

This is the data/api context for a React app that uses network requests to fetch data from either a RESTful service backend or a GraphQL service backend (both are available in the CORI Data API). See ApiContextType for a list of props offered by this context.

Note that GraphQL queries require a special client that can be instantiated by an additional context provider component (i.e. ApolloGraphQLProvider).

Defined in

@cori-risi/contexts/ApiContextProvider.tsx:113