Skip to main content

@dialstack/sdk-dev / react/src / useReportComponent

Function: useReportComponent()

TypeScript
function useReportComponent(name): void;

Defined in: sdk/react/src/react/DialstackComponentsProvider.tsx:110

Internal

Report a React-only component (one that is not a web component, which reports itself) in the DialStack-Client header. No-op outside a provider. Runs during render, like the provider's own registration, so requests from the component's children's mount effects already carry it.

Parameters​

name​

string

Returns​

void