Add prevState to onDispatch
komarovalexander
released this
18 May 06:01
·
74 commits
to master
since this release
prevState
is useful when you need to get previous state of the table in onDispatch
const table = useTable({
onDispatch: (action, tableProps, prevState) => {
}
});
major version is updated as oldValue
has been removed from UpdateEditorValue
& UpdateCellValue
as not required anymore (oldValue
can be obtained from prevState)