Skip to main content

Other Hooks

This page includes reference documentation for general hooks in the Search JS React framework.

useEvented

A React hook to register an event listener on a Search JS Core Evented object.

Evented is a base class that is inherited by SearchSession.

Parameters

evented((Evented<T> | null)) 
eventName(K) 
cb(function (object: any): any) 

Returns

void
Was this section on useEvented helpful?
Was this page helpful?