Skip to main content

useSourcingClient

The client from the nearest SourcingProvider. Throws when that provider is missing.

The hook returned the client from the provider.

Example
function SourcingPanel() {
const client = useSourcingClient();
return <SourcingChat />;
}

This export takes no props.

const client = useSourcingClient();