useHasIndex
The useHasIndex primitive 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 an update.
useHasIndex(
indexId: MaybeAccessor<string>,
indexesOrIndexesId?: MaybeAccessor<undefined | IndexesOrIndexesId>,
): Accessor<boolean>| Type | Description | |
|---|---|---|
indexId | MaybeAccessor<string> | |
indexesOrIndexesId? | MaybeAccessor<undefined | IndexesOrIndexesId> | The |
| returns | Accessor<boolean> |
This primitive follows the same Indexes object resolution rules as the useIndexIds primitive.
Since
v9.1.0