Column visiblity feature broken in combination with React compiler
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 48/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 冷清
- 技术栈
- react, typescript
- 领域
- frontend
调研方向
从 src/App.tsx 中链接的复现开始,尤其关注第 167–192 行附近的选项,并使用 TanStack Table v9、React 19.2.8 以及已启用的 React 编译器运行它。当将行渲染提取到单独的组件中时,复现列可见性故障,然后验证列切换无需依赖报告中的 FlexRender workaround 即可正常工作。
由索引模型根据 Issue 内容生成。
描述
TanStack Table version
v9.0.0
Framework/Library version
v19.2.8
Describe the bug and the steps to reproduce it
Hi,
While migrating our codebase to Tanstack table v9, we noticed an issue when using the column visibility feature.
We are using the React compiler for some months already.
It's a weird combination of things that introduces the bug.
We notice the behaviour only when extracting the code to render a row in a seperate component and without the directive "no use memo".
See this repo with a small minimal reproduction. We have added some options that you can comment in or out (see lines 167 - 192).
It's a link to a github repo, because for some reason we could not reproduce it in the CodeSandbox.
For now we can circumvent the bug, by using the new <table.FlexRender> component.
Thanks in advance for looking at this.
Your Minimal, Reproducible Example - (Sandbox Highly Recommended)
https://github.com/BertVereecken/tanstack-table-bug-repro/blob/main/src/App.tsx
Screenshots or Videos (Optional)
No response
Do you intend to try to help solve this bug with your own PR?
No, because I do not know how
Terms & Code of Conduct
- I agree to follow this project's Code of Conduct
- I understand that if my bug cannot be reliable reproduced in a debuggable environment, it will probably not be fixed and this issue may even be closed.
- 主要语言
- TypeScript
- 星标
- 28.4k
- 派生
- 3.6k
- 平均合并
- 1 天 1 小时
- 30 天内合并 PR
- 7
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
TanStack/table 的其他 Issue
-
难度 1/5 1 小时以内 新手友好度 78/100
-
难度 5/5 一周以上 新手友好度 35/100
-
难度 3/5 1-2 天 新手友好度 78/100
-
难度 5/5 一周以上 新手友好度 35/100
-
难度 3/5 1-2 天 新手友好度 55/100
相似的 Issue
-
VerificationGate: ATTRIBUTION quote guard never matches a normal quotation (\b around the quote) 未关闭
难度 2/5 1-3 小时 新手友好度 75/100
danielmiessler/LifeOS#2234 ·
-
T: Bug
难度 2/5 1-3 小时 新手友好度 75/100
-
难度 2/5 1-3 小时 新手友好度 65/100
-
难度 1/5 1 小时以内 新手友好度 85/100
-
Mend: dependency security vulnerability untriaged
难度 2/5 1-3 小时 新手友好度 70/100