You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
One of the features we want to give our users is a way to modify column filter/aggregation functions.
The way we allow this for filter functions is through a modal like this:
When the user selects a column and modifies the comparison value, we run code to update the column definitions:
But that code isn't enough to update the table.
So in order to get the table to update, we update the
filters
state by setting it equal to a copy of itself:Is there a better way to do this? Should react-table automatically re-apply filters and other state whenever the column definitions are updated?
cc @tannerlinsley
Beta Was this translation helpful? Give feedback.
All reactions