#
useCommonRoomInstrumentationClient
Retrieve a CommonRoomInstrumentationClient instance.
#
Reference
const client = useCommonRoomInstrumentationClient(options?: { throwOnUndefined? });
#
Parameters
options: An optional object literal of options:throwOnUndefined: Whether or not an exception should be thrown if a client instance hasn't been provided.
#
Returns
A CommonRoomInstrumentationClient instance.
#
Usage
import { useCommonRoomInstrumentationClient } from "@workleap/common-room/react";
const client = useCommonRoomInstrumentationClient();
client.identify("johndoe@contoso.com");