HeaderContext and CellContext types should use ReactTable
Author: kevinpastorCreated Apr 14, 2026Updated Apr 29, 2026
TanStack Table version
9.0.0-alpha.32
Framework/Library version
Describe the bug and the steps to reproduce it
When defining cell or header in the column definitions, the type of the props provided, CellContext and HeaderContext respectively, is inaccurate. The type of the table prop should be ReactTable instead of Table. Without, a cell cannot use table.Subscribe that became available in the alpha 9.
In the example, you can see in the logs that the table provided as prop does actually have the properties.
Your Minimal, Reproducible Example - (Sandbox Highly Recommended)
https://codesandbox.io/p/sandbox/yq2lwx
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 have time to dig into it
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.
Source: TanStack/table