Skip to content
Source
Sign inSign up
TanStack/table

HeaderContext and CellContext types should use ReactTable #6230

Openkevinpastor(GitHub profile, opens in a new tab) opened this issue 1 comment

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.

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.
  1. hmmm, I was aware of this, but just provided <Subscribe table={table} ... /> as an option.

Sign in to join this conversation.