(client: AnalyticsClient | null)
| 210 | * non-React hosts (or tests). Pass `null` to restore the no-op default. |
| 211 | */ |
| 212 | export const setAnalyticsClient = (client: AnalyticsClient | null): void => { |
| 213 | currentAnalyticsClient = client; |
| 214 | }; |
| 215 | |
| 216 | /** |
| 217 | * Record one product event. Safe to call from anywhere (React handlers, |