Manta Developers
GitHub
Menu

@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?

optional authorizedFetch?: typeof fetch

datastoreId

datastoreId: string | undefined

datastorePath

datastorePath: (path) => string

Parameters
path

string

Returns

string

getAccessToken?

optional getAccessToken?: AccessTokenSource

mantaBaseUrl

mantaBaseUrl: URL

mantaClient

mantaClient: GraphQLClient

onSignOut?

optional onSignOut?: () => void

Returns

void

onUnauthorized

onUnauthorized: () => void

Returns

void

sparqlFetch

sparqlFetch: SparqlFetch

uploadRelay?

optional uploadRelay?: UploadRelay


SparqlFetch

SparqlFetch = (query, options?) => Promise<Response>

Parameters

query

string

options?

SparqlFetchOptions

Returns

Promise<Response>


SparqlFetchOptions

SparqlFetchOptions = object

Properties

factDomain?

optional factDomain?: "derived" | "explicit"

signal?

optional signal?: AbortSignal

Variables

cookieFetch

const cookieFetch: typeof fetch


MantaClientProviderContext

const MantaClientProviderContext: 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>

MDN Reference

Parameters
input

URL | RequestInfo

init?

RequestInit

Returns

Promise<Response>

(input, init?): Promise<Response>

MDN Reference

Parameters
input

string | URL | Request

init?

RequestInit

Returns

Promise<Response>