Skip to content

Column visiblity feature broken in combination with React compiler #6524

Description

@BertVereecken

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.

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