TinyBase logoTinyBase β

useIndexIds

The useIndexIds hook returns a reactive object reflecting the Ids of the Indexes in an Indexes object, and registers a listener so that any changes will update .current.

useIndexIds(indexesOrIndexesId?: MaybeGetter<undefined | IndexesOrIndexesId>): {current: Ids}
TypeDescription
indexesOrIndexesId?MaybeGetter<undefined | IndexesOrIndexesId>

The Indexes object to use, or its Id.

returns{current: Ids}

A reactive object with a current Ids property.

Since

v8.1.0