Registers scope key-value pairs on the analytics client for the lifetime of the calling component. All keys are removed on unmount, so scope is tied to the component's lifecycle (e.g. while the user is on a particular route).
useAnalyticsScope({ patientId, auditRunId }); Copy
useAnalyticsScope({ patientId, auditRunId });
Registers scope key-value pairs on the analytics client for the lifetime of the calling component. All keys are removed on unmount, so scope is tied to the component's lifecycle (e.g. while the user is on a particular route).