Skip to content

Latest commit

 

History

History
25 lines (15 loc) · 937 Bytes

search-ui-react.usecardanalyticscallback.md

File metadata and controls

25 lines (15 loc) · 937 Bytes

Home > @yext/search-ui-react > useCardAnalyticsCallback

useCardAnalyticsCallback() function

Creates a memoized function for reporting card analytics.

Signature:

export declare function useCardAnalyticsCallback<T = DefaultRawDataType>(result: CardAnalyticsDataType<T>, analyticsType: CardAnalyticsType): () => void;

Parameters

Parameter Type Description
result CardAnalyticsDataType<T> result that contains data use in the card analytics event.
analyticsType CardAnalyticsType the card analytics event type to report.

Returns:

() => void