Skip to content

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

Open
@gabrielgraciani

Description

@gabrielgraciani

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.

Activity

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

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