TinyBase

Indexes hooks

This is the collection of indexes hooks within the ui-react module. There are 6 indexes hooks in total.

useSliceRowIds

The useSliceRowIds hook gets the list of Row Ids in a given Slice, and registers a listener so that any changes to that result will cause a re-render.

useSliceRowIdsListener

The useSliceRowIdsListener hook registers a listener function with the Indexes object that will be called whenever the Row Ids in a Slice change.

useCreateIndexes

The useCreateIndexes hook is used to create an Indexes object within a React application with convenient memoization.

useIndexes

The useIndexes hook is used to get a reference to an Indexes object from within a Provider component context.

useSliceIds

The useSliceIds hook gets the list of Slice Ids in an Index, and registers a listener so that any changes to that result will cause a re-render.

useSliceIdsListener

The useSliceIdsListener hook registers a listener function with the Indexes object that will be called whenever the Slice Ids in an Index change.