TinyBase logoTinyBase β

useTables

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

useTables(storeOrStoreId?: MaybeGetter<undefined | StoreOrStoreId>): {current: Tables}
TypeDescription
storeOrStoreId?MaybeGetter<undefined | StoreOrStoreId>

The Store to use, or its Id in a Provider context.

returns{current: Tables}

A reactive object with a current Tables property.

Since

v8.1.0