react-bootstrap-table / react-bootstrap-table2

Next Generation of react-bootstrap-table
https://react-bootstrap-table.github.io/react-bootstrap-table2/
MIT License
1.27k stars 431 forks source link

For select filters, based on one filter selection, set other filters with corresponding values #1788

Open 00-TylerDurden opened 1 year ago

00-TylerDurden commented 1 year ago

Based on one filter selection, I am trying to set the value of other filters. As per the doc provided below, the afterFilter function provides us new table dataset from newResult . https://www.npmjs.com/package/react-bootstrap-table2-filter While trying to set the corresponding filter values, I am getting stuck with below error.

Error: Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.

Hence, please help to set corresponding values for rest of the select filters.

This was mentioned in the issue #1097 and #1441

Appreciate your help.

mariobdom commented 1 year ago

any updates on this?? got the same error but with date filter