@manta-eu/react/providers/manta-client-context
Reference for @manta-eu/react/providers/manta-client-context as it is on main.
Type Aliases
MantaClientProviderState
MantaClientProviderState =
object
Properties
authorizedFetch?
optionalauthorizedFetch?: typeoffetch
datastoreId
datastoreId:
string|undefined
datastorePath
datastorePath: (
path) =>string
Parameters
path
string
Returns
string
getAccessToken?
optionalgetAccessToken?:AccessTokenSource
mantaBaseUrl
mantaBaseUrl:
URL
mantaClient
mantaClient:
GraphQLClient
onSignOut?
optionalonSignOut?: () =>void
Returns
void
onUnauthorized
onUnauthorized: () =>
void
Returns
void
sparqlFetch
sparqlFetch:
SparqlFetch
uploadRelay?
optionaluploadRelay?:UploadRelay
SparqlFetch
SparqlFetch = (
query,options?) =>Promise<Response>
Parameters
query
string
options?
Returns
Promise<Response>
SparqlFetchOptions
SparqlFetchOptions =
object
Properties
factDomain?
optionalfactDomain?:"derived"|"explicit"
signal?
optionalsignal?:AbortSignal
Variables
cookieFetch
constcookieFetch: typeoffetch
MantaClientProviderContext
constMantaClientProviderContext:Context<MantaClientProviderState|undefined>
Functions
providerFetch()
providerFetch(
state): {(input,init?):Promise<Response>; (input,init?):Promise<Response>; }
Parameters
state
Pick<MantaClientProviderState, "authorizedFetch" | "getAccessToken">
Returns
(
input,init?):Promise<Response>
Parameters
input
URL | RequestInfo
init?
RequestInit
Returns
Promise<Response>
(
input,init?):Promise<Response>
Parameters
input
string | URL | Request
init?
RequestInit
Returns
Promise<Response>