Home > widget-integration > InstantSearchController > whenReady
InstantSearchController.whenReady() method
Await full initialization, but never block a user click indefinitely.
Resolves when resolves, or after a short timeout if init has stalled — matching the legacy behavior where a click simply no-ops rather than hanging.
Signature:
protected whenReady(timeoutMs?: number): Promise<void>;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
timeoutMs |
number |
(Optional) |
Returns:
Promise<void>