react-query-firebase / analytics / useLogEvent
Function: useLogEvent()
ts
function useLogEvent(options): object
Defined in: src/analytics/useLogEvent.ts:19
Custom hook to create a log event function that logs an analytics event with specified parameters.
Parameters
options
UseLogEventOptions
The options for the log event.
Returns
object
An object containing a logEvent
function that, when called, logs the event.
logEvent()
ts
logEvent: () => void = logEventCallback;
Returns
void