A key to namespace the state under (e.g. 'filters', 'sort')
Optional
initialState: objectInitial state to put into the table state
Optional
options: { callbacks?: object; observers?: object; serialiser?: object } = {}Options for the state
Optional
callbacks?: objectAn object with callbacks
Optional
observers?: objectAn object with properties of an other state namespace and an object or function returning an object with an desired state should the other state change
Optional
serialiser?: objectA function to serialise the table state and allow access it via the useSerialisedTableState hook
An array with the first item being the tableState, the second a function to set the state and a third optional item with the serialised state if a serialiser was provided
Provides an interface for hooks to store their states name-spaced into the tableState in the TableContext