Skip to content

autoResetExpanded not reset the expanded state on data change in V8 #5801

Open
@trend-alan-bie

Description

TanStack Table version

V8.20.5

Framework/Library version

18.3.1

Describe the bug and the steps to reproduce it

The autoResetExpanded can not reset the expanded state even if I set this flag to true.
The below example is a copy of the official document. I even changed the expanded state to uncontrol mode(the table maintains the state)
After expanding some rows and clicking the refresh data button, the expanded rows can not be reset.

Worked in V7: https://codesandbox.io/p/sandbox/trusting-framework-qhl8rl?file=%2Fsrc%2FApp.js%3A37%2C10

Not work in V8: https://codesandbox.io/p/devbox/flamboyant-blackburn-2ctj8j?file=%2Fsrc%2Fmain.tsx%3A130%2C29&workspaceId=52d5059b-b49f-4b59-913f-c07fb465ad14

Your Minimal, Reproducible Example - (Sandbox Highly Recommended)

https://codesandbox.io/p/devbox/flamboyant-blackburn-2ctj8j?file=%2Fsrc%2Fmain.tsx%3A130%2C29&workspaceId=52d5059b-b49f-4b59-913f-c07fb465ad14

Screenshots or Videos (Optional)

No response

Do you intend to try to help solve this bug with your own PR?

None

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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