小编Kos*_* GL的帖子

TanStack 表| 如何在示例中使用 onPaginationChange 中的 redux 操作而不是 setPaginationState

使用此示例
https://tanstack.com/table/v8/docs/examples/react/pagination-control
我如何使用https://tanstack.com/table/v8/docs/api/features/pagination#onpaginationchange如果我需要调度我的 redux 操作而不是 useState - setPaginationState?

onPaginationChange: state => dispatch(browseItemModalActions.setPagination(state))
Run Code Online (Sandbox Code Playgroud)

在控制台中出现此错误:

`react_devtools_backend.js:4012 A non-serializable value was detected in an action, in the path: `payload`. Value: old => {
          let newState = functionalUpdate(updater, old);
          return newState;
        } 
Run Code Online (Sandbox Code Playgroud)

typescript react-table redux-toolkit

5
推荐指数
1
解决办法
3420
查看次数

标签 统计

react-table ×1

redux-toolkit ×1

typescript ×1