table icon indicating copy to clipboard operation
table copied to clipboard

autoResetExpanded not reset the expanded state on data change in V8

Open trend-alan-bie opened this issue 1 year ago • 1 comments

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

  • [x] I agree to follow this project's Code of Conduct
  • [x] 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.

trend-alan-bie avatar Nov 12 '24 04:11 trend-alan-bie

sandbox v8

Image

Rigel772 avatar Jul 19 '25 06:07 Rigel772