Skip to content

Filtering/sorting does not reapply when ItemTable data changes #145

Closed
campb303 opened this issue Dec 4, 2020 · 1 comment
Closed

Filtering/sorting does not reapply when ItemTable data changes #145

campb303 opened this issue Dec 4, 2020 · 1 comment
Assignees
Labels
bug An issue that results in webqueue2 breaking

Comments

@campb303
Copy link
Collaborator

campb303 commented Dec 4, 2020

ItemTable filters/sorting applies to data that is in the table but does not reapply to data added to the table after the filters are set. Filtering/sorting should be recalculated when data changes.

@campb303 campb303 added bug An issue that results in webqueue2 breaking frontend labels Dec 4, 2020
@campb303 campb303 added this to the v1 milestone Dec 4, 2020
@campb303
Copy link
Collaborator Author

By default, both the useFilters and useSortBy hooks for react-table use state to manage filters that gets reset when the table data changes. Both hooks have config options to control this behavior:

By setting these both to false, the filter and sort values remain unchanged when the table data changes.

Sign in to join this conversation on GitHub.
Labels
bug An issue that results in webqueue2 breaking
Projects
None yet
Development

No branches or pull requests

2 participants