TanStack Table version
9.0.0-alpha.32
Framework/Library version
react@19.1.0
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
TanStack Table version
9.0.0-alpha.32
Framework/Library version
react@19.1.0
Describe the bug and the steps to reproduce it
When defining
cellorheaderin the column definitions, the type of the props provided,CellContextandHeaderContextrespectively, is inaccurate. The type of thetableprop should beReactTableinstead ofTable. Without, a cell cannot usetable.Subscribethat 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