TinyBase logoTinyBase β

useValueIds

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

useValueIds(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