hasSlice
The hasSlice function returns a reactive object reflecting whether a given Slice exists in an Index, and registers a listener so that any changes will update current.
hasSlice(
indexId: MaybeGetter<string>,
sliceId: MaybeGetter<string>,
indexesOrIndexesId?: MaybeGetter<undefined | IndexesOrIndexesId>,
): {current: boolean}| Type | Description | |
|---|---|---|
indexId | MaybeGetter<string> | |
sliceId | MaybeGetter<string> | |
indexesOrIndexesId? | MaybeGetter<undefined | IndexesOrIndexesId> | |
| returns | {current: boolean} | A reactive object with a |
Since
v9.1.0