Skip to content

react-query-firebase / useLogEvent

Function: useLogEvent() ​

ts
function useLogEvent(options): object;

Defined in: src/web/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

Released under the MIT License.