Table 结合 TanStack Store
vbeta
io.github.TanStack/table/compose-with-tanstack-store
`@tanstack/react-table` v9 构建在 TanStack Store 之上。每个状态切片(sorting、pagination、rowSelection、columnFilters 等)都是独立的 atom。表格暴露三个读取入口——`table.atoms.<slice>`(按切片的只读)、`table.store`(扁平只读视图)、`table.state`(来自 `useTable` 的 selector 输出)——以及两条写入路径——内部 `table.baseAtoms.<slice>`,或在你选择自己托管该切片时使用你的 `options.atoms[slice]`。用 `@tanstack/react-store` 的 `useCreateAtom` 保证稳定标识,用 `useSelector` 做细粒度读取,并把 atom 通过 `options.atoms` 传入,让表格直接写入——无需 `on*Change` 处理函数。