Create “Or” logic for filters
Hi, I am trying to change the table’s getFilteredRowModel function to allow for rows to pass the filters if they pass any of multiple sets of filters rather than just a single filter set. The sets of these filters are gathered asynchronously, and so my custom getFilteredRowModel function is not able to access them. Is there a better way to create this “Or” logic than with a custom getFilteredRowModel function? Or if not how can I attach the state of the filters being gathered to the table, so that the table has the updated version when these are gathered?
For example:
Rather than the filters being only a single filter such as:
I would like to be able to accomplish passing a row that is either green or blue, with the following filters loaded asynchronously
1 Reply
conscious-sapphire•3y ago
Hey @abusel did you manage to find the solution for this issue?