TinyBase logoTinyBase β

useTableIds

The useTableIds hook returns a reactive object reflecting the Ids of the Tables in a Store, and registers a listener so that any changes to those Ids will update .current.

useTableIds(storeOrStoreId?: MaybeGetter<undefined | StoreOrStoreId>): {current: Ids}
TypeDescription
storeOrStoreId?MaybeGetter<undefined | StoreOrStoreId>

The Store to use (plain value or getter), or its Id.

returns{current: Ids}

A reactive object with a current Ids property.

Since

v8.1.0