useHasIndex
The useHasIndex hook returns a boolean indicating whether a given Index exists in the Indexes object, and registers a listener so that any changes to that result will cause a re-render.
useHasIndex(
indexId: string,
indexesOrIndexesId?: IndexesOrIndexesId,
): boolean| Type | Description | |
|---|---|---|
indexId | string | |
indexesOrIndexesId? | IndexesOrIndexesId | The |
| returns | boolean |
This hook follows the same Indexes object resolution rules as the useIndexIds hook.
Since
v9.1.0