TinyBase logoTinyBase β

hasTables

The hasTables function returns a reactive object indicating whether any Tables exist in the Store, and registers a listener so that any changes to that result will update current.

hasTables(storeOrStoreId?: MaybeGetter<undefined | StoreOrStoreId>): {current: boolean}
TypeDescription
storeOrStoreId?MaybeGetter<undefined | StoreOrStoreId>

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

returns{current: boolean}

A reactive object with a current boolean property.

Since

v8.1.0