TinyBase logoTinyBase β

State hooks

useTablesState

The useTablesState hook returns a Tables object and a function to set it, following the same pattern as React's useState hook. Read more.

useTableState

The useTableState hook returns a Table and a function to set it, following the same pattern as React's useState hook. Read more.

useRowState

The useRowState hook returns a Row and a function to set it, following the same pattern as React's useState hook. Read more.

useCellState

The useCellState hook returns a Cell from a Store and a callback to set it, following the common React useState convention. Read more.

useParamValuesState

The useParamValuesState hook returns an array containing all the parameter values for a query, and a callback for changing them, providing an easy way to bind a query's parameters to a user-controlled component. Read more.

useValuesState

The useValuesState hook returns a Values object and a function to set it, following the same pattern as React's useState hook. Read more.

useParamValueState

The useParamValueState hook returns a parameter value and a function to set it, following the same pattern as React's useState hook. Read more.

useValueState

The useValueState hook returns a Value from a Store and a callback to set it, following the common React useState convention. Read more.