TinyBase logoTinyBase β

Store primitives

useCreateMergeableStore

The useCreateMergeableStore primitive. Read more.

useCreateStore

Essential

The useCreateStore primitive is used to create a Store within a Solid application with convenient ownership. Read more.

useProvideStore

The useProvideStore primitive is used to add a Store object by Id to a Provider component, but imperatively from a component within it. Read more.

useStore

The useStore primitive is used to get a reference to a Store from within a Provider component context. Read more.

useStoreIds

The useStoreIds primitive is used to retrieve the Ids of all the named Store objects present in the current Provider component context. Read more.

useStoreOrStoreById

The useStoreOrStoreById primitive is used to get a reference to a Store object from within a Provider component context, or have it passed directly to this primitive. Read more.

useStores

The useStores primitive is used to get a reference to all the Store objects named by Id within a Provider component context. Read more.

useDelTablesCallback

The useDelTablesCallback primitive returns a callback that can be used to remove all of the tabular data in a Store. Read more.

useHasTables

The useHasTables primitive returns a boolean indicating whether any Table objects exist in the Store, and registers a listener so that any changes to that result will cause an update. Read more.

useHasTablesListener

The useHasTablesListener primitive registers a listener function with the Store that will be called when Tables as a whole are added to or removed from the Store. Read more.

useSetTablesCallback

The useSetTablesCallback primitive returns a parameterized callback that can be used to set the tabular data of a Store. Read more.

useTables

The useTables primitive returns a Tables object containing the tabular data of a Store, and registers a listener so that any changes to that result will cause an update. Read more.

useTablesListener

The useTablesListener primitive registers a listener function with a Store that will be called whenever tabular data in it changes. Read more.

useTableIds

The useTableIds primitive returns the Ids of every Table in a Store, and registers a listener so that any changes to that result will cause an update. Read more.

useTableIdsListener

The useTableIdsListener primitive registers a listener function with a Store that will be called whenever the Table Ids in it change. Read more.

useDelTableCallback

The useDelTableCallback primitive returns a parameterized callback that can be used to remove a single Table from a Store. Read more.

useHasTable

The useHasTable primitive returns a boolean indicating whether a given Table exists in the Store, and registers a listener so that any changes to that result will cause an update. Read more.

useHasTableCell

The useHasTableCell primitive returns a boolean indicating whether a given Cell exists anywhere in a Table, not just in a specific Row, and registers a listener so that any changes to that result will cause an update. Read more.

useHasTableCellListener

The useHasTableCellListener primitive registers a listener function with the Store that will be called when a Cell is added to or removed from anywhere in a Table as a whole. Read more.

useHasTableListener

The useHasTableListener primitive registers a listener function with the Store that will be called when a Table is added to or removed from the Store. Read more.

useSetTableCallback

The useSetTableCallback primitive returns a parameterized callback that can be used to set the data of a single Table in a Store. Read more.

useTable

The useTable primitive returns an object containing the data of a single Table in a Store, and registers a listener so that any changes to that result will cause an update. Read more.

useTableCellIds

The useTableCellIds primitive returns the Ids of every Cell used across the whole Table, and registers a listener so that any changes to that result will cause an update. Read more.

useTableCellIdsListener

The useTableCellIdsListener primitive registers a listener function with a Store that will be called whenever the Cell Ids that appear anywhere in a Table change. Read more.

useTableListener

The useTableListener primitive registers a listener function with a Store that will be called whenever data in a Table changes. Read more.

useRowIds

The useRowIds primitive returns the Ids of every Row in a given Table, and registers a listener so that any changes to that result will cause an update. Read more.

useRowIdsListener

The useRowIdsListener primitive registers a listener function with a Store that will be called whenever the Row Ids in a Table change. Read more.

useSortedRowIds

The useSortedRowIds primitive returns the sorted (and optionally, paginated) Ids of every Row in a given Table, and registers a listener so that any changes to that result will cause an update. Read more.

useSortedRowIdsListener

The useSortedRowIdsListener primitive registers a listener function with a Store that will be called whenever sorted (and optionally, paginated) Row Ids in a Table change. Read more.

useAddRowCallback

The useAddRowCallback primitive returns a parameterized callback that can be used to create a new Row in a Store. Read more.

useDelRowCallback

The useDelRowCallback primitive returns a parameterized callback that can be used to remove a single Row from a Table. Read more.

useHasRow

The useHasRow primitive returns a boolean indicating whether a given Row exists in the Store, and registers a listener so that any changes to that result will cause an update. Read more.

useHasRowListener

The useHasRowListener primitive registers a listener function with the Store that will be called when a Row is added to or removed from the Store. Read more.

useRow

Essential

The useRow primitive returns an object containing the data of a single Row in a given Table, and registers a listener so that any changes to that result will cause an update. Read more.

useRowCount

The useRowCount primitive returns the count of the Row objects in a given Table, and registers a listener so that any changes to that result will cause an update. Read more.

useRowCountListener

The useRowCountListener primitive registers a listener function with a Store that will be called whenever the count of the Row objects in a Table changes. Read more.

useRowListener

The useRowListener primitive registers a listener function with a Store that will be called whenever data in a Row changes. Read more.

useSetPartialRowCallback

The useSetPartialRowCallback primitive returns a parameterized callback that can be used to set partial data of a single Row in the Store, leaving other Cell values unaffected. Read more.

useSetRowCallback

The useSetRowCallback primitive returns a parameterized callback that can be used to set the data of a single Row in a Store. Read more.

useCellIds

The useCellIds primitive returns the Ids of every Cell in a given Row, in a given Table, and registers a listener so that any changes to that result will cause an update. Read more.

useCellIdsListener

The useCellIdsListener primitive registers a listener function with a Store that will be called whenever the Cell Ids in a Row change. Read more.

useCell

Essential

The useCell primitive returns an object containing the value of a single Cell in a given Row, in a given Table, and registers a listener so that any changes to that result will cause an update. Read more.

useCellListener

The useCellListener primitive registers a listener function with a Store that will be called whenever data in a Cell changes. Read more.

useDelCellCallback

The useDelCellCallback primitive returns a parameterized callback that can be used to remove a single Cell from a Row. Read more.

useHasCell

The useHasCell primitive returns a boolean indicating whether a given Cell exists in a given Row in a given Table, and registers a listener so that any changes to that result will cause an update. Read more.

useHasCellListener

The useHasCellListener primitive registers a listener function with the Store that will be called when a Cell is added to or removed from the Store. Read more.

useSetCellCallback

The useSetCellCallback primitive returns a parameterized callback that can be used to set the value of a single Cell in a Store. Read more.

useDelValuesCallback

The useDelValuesCallback primitive returns a callback that can be used to remove all of the keyed value data in a Store. Read more.

useHasValues

The useHasValues primitive returns a boolean indicating whether any Values exist in the Store, and registers a listener so that any changes to that result will cause an update. Read more.

useHasValuesListener

The useHasValuesListener primitive registers a listener function with the Store that will be called when Values as a whole are added to or removed from the Store. Read more.

useSetPartialValuesCallback

The useSetPartialValuesCallback primitive returns a parameterized callback that can be used to set partial Values data in the Store, leaving other Values unaffected. Read more.

useSetValuesCallback

The useSetValuesCallback primitive returns a parameterized callback that can be used to set the keyed value data of a Store. Read more.

useValues

The useValues primitive returns a Values object containing the keyed value data of a Store, and registers a listener so that any changes to that result will cause an update. Read more.

useValuesListener

The useValuesListener primitive registers a listener function with a Store that will be called whenever keyed value data in it changes. Read more.

useDelValueCallback

The useDelValueCallback primitive returns a parameterized callback that can be used to remove a single Value from a Store. Read more.

useHasValue

The useHasValue primitive returns a boolean indicating whether a given Value exists in the Store, and registers a listener so that any changes to that result will cause an update. Read more.

useHasValueListener

The useHasValueListener primitive registers a listener function with the Store that will be called when a Value is added to or removed from the Store. Read more.

useSetValueCallback

The useSetValueCallback primitive returns a parameterized callback that can be used to set the data of a single Value in a Store. Read more.

useValue

Essential

The useValue primitive returns an object containing the data of a single Value in a Store, and registers a listener so that any changes to that result will cause an update. Read more.

useValueIds

The useValueIds primitive returns the Ids of every Value in a Store, and registers a listener so that any changes to that result will cause an update. Read more.

useValueIdsListener

The useValueIdsListener primitive registers a listener function with a Store that will be called whenever the Value Ids in it change. Read more.

useValueListener

The useValueListener primitive registers a listener function with a Store that will be called whenever data in a Value changes. Read more.

useDidFinishTransactionListener

The useDidFinishTransactionListener primitive registers a listener function with a Store that will be called just after other non-mutating listeners are called at the end of the transaction. Read more.

useStartTransactionListener

The useStartTransactionListener primitive registers a listener function with the Store that will be called at the start of a transaction. Read more.

useWillFinishTransactionListener

The useWillFinishTransactionListener primitive registers a listener function with a Store that will be called just before other non-mutating listeners are called at the end of the transaction. Read more.