react-table v7.0.0-beta.20 Release Notes
-
- Internals have been reworked to use
useReducer
instead ofuseState
for stability and architecture - ๐ The
state
option has been removed in favor of using a custom reducer - The
reducer
option has been changed to a new function signature:function (newState, action, oldState) => newState
- ๐ The
setState
table instance method is no longer supported - The
dispatch
table instanced method was added - The
ReactTable.actions
export is now a plain object of action types mapped to identically named action strings - ๐ The
ReactTable.reducerHandlers
export was added, which is a plain object of plugin hook names mapped to their respective reducer functions
- Internals have been reworked to use