Skip to content

Expandable + Filterable Table: subRows empty after a filter was set #2309

@MarcusNotheis

Description

@MarcusNotheis

Describe the bug (required)
A clear and concise description of what the bug is.
When using a table with the useFilters and useExpand plugins, the subRows of a row with children is empty after setting a filter and clearing it again.

Provide an example via Codesandbox! (required)
https://codesandbox.io/s/runtime-currying-odrn8?file=/src/App.js

Steps To Reproduce (required)

  1. Open the provided code sandbox
  2. expand the first row (optional), just to make sure there are subRows
  3. Filter the second column (Visits) to 29
  4. Remove the filter from the second column (Visits) again
  5. The first row doesn't have subRows any longer

Expected behavior (Recommended)
I would expect that I can see the original subrows of each row after removing all filters

Screenshots
If applicable, add screenshots to help explain your problem.
ReactTableError

Desktop (please complete the following information):

  • OS: MacOS Catalina 10.15.4
  • Browser: Chrome
  • Version: 81.0.4044.138

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