Skip to content

Add prevState to onDispatch

Compare
Choose a tag to compare
@komarovalexander komarovalexander released this 18 May 06:01
· 74 commits to master since this release
210f76f

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)