Other Hooks
Public beta for Mapbox Search JS
Mapbox Search JS is in public beta. During the public beta phase, frameworks may be subject to potential changes as they stabilize.
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?