Skip to content

HeaderContext and CellContext types should use ReactTable #6230

@kevinpastor

Description

@kevinpastor

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

  • 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions