Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Rows bring from infinite scroll are coming with Expand = False if I collapse any row #5935

Open
2 tasks done
gabrielgraciani opened this issue Feb 27, 2025 · 0 comments
Open
2 tasks done

Comments

@gabrielgraciani
Copy link

gabrielgraciani commented Feb 27, 2025

TanStack Table version

8.21.2

Framework/Library version

18.3.1

Describe the bug and the steps to reproduce it

If we have a table with infinite scroll and expandable rows, without make any expand/collapse, the new rows coming from the scroll will be expanded by default, but once I collapse one row, when we make a new scroll, the new rows will be collapse by default, but should be expanded.

Steps to reproduce it

  1. Load more rows with infinite scroll
  2. See the new rows coming with expanded = true
  3. Collapse one row
  4. Load more rows with infinite scroll
  5. See the new rows coming with expanded = false

ACTUAL RESULT:

  1. New rows coming with expanded = false

EXPECTED RESULTS:

  1. New rows coming with expanded = true

Your Minimal, Reproducible Example - (Sandbox Highly Recommended)

https://stackblitz.com/edit/tanstack-table-hd8jfjul?file=src%2Fmain.tsx&preset=node

Screenshots or Videos (Optional)

Screen.Recording.2025-02-27.at.10.09.16.mp4

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.
@gabrielgraciani gabrielgraciani changed the title New Rows bring from infinite scroll are coming with Expand = False if I expand any row New Rows bring from infinite scroll are coming with Expand = False if I collapse any row Feb 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant