Manta Developers
GitHub
Menu

@manta-eu/react/providers/MantaClientProvider

Reference for @manta-eu/react/providers/MantaClientProvider as it is on main.

Type Aliases

MantaClientProviderProps

MantaClientProviderProps = object

Properties

children

children: ReactNode

datastoreId?

optional datastoreId?: string

getAccessToken?

optional getAccessToken?: AccessTokenSource

For an app on its own domain that signs people in itself: requests carry this bearer, not the cookie.

mantaBaseUrl

mantaBaseUrl: string

onSignOut?

optional onSignOut?: () => void

What Log out does for a getAccessToken host; falls back to onUnauthorized.

Returns

void

ontologyGraphIri?

optional ontologyGraphIri?: string

onUnauthorized?

optional onUnauthorized?: () => void

Returns

void

Functions

MantaClientProvider()

MantaClientProvider(props): Element

Parameters

props

MantaClientProviderProps

Returns

Element


useMantaClient()

useMantaClient(): MantaClientProviderState

Returns

MantaClientProviderState

References

MantaClientProviderState

Re-exports MantaClientProviderState


SparqlFetch

Re-exports SparqlFetch


SparqlFetchOptions

Re-exports SparqlFetchOptions