[REACT #199] Call setState in react component will clear selected filters

Tags: #<Tag:0x00007fbe95adede0> #<Tag:0x00007fbe95adeca0>

hey, teams,

We are trying to update to handsontable 8.1.0, in this version, if we call setState in afterFilter hooks, the table will not rerender. demo: https://jsfiddle.net/eudmgt63/2/ , apply filter is not working in this demo, any suggestion? If we remove the setState() in afterFilter hooks, everything works fine.


Hi @HiddenSN

Thank you for sharing the issue report. I have replicated the issue and after a chat with our Support Engineer we connected this issue to this one https://github.com/handsontable/react-handsontable/issues/132 It seems that the setState does not cooperate cell with our updateSettings method.
I have reported this issue to our official Github board at https://github.com/handsontable/react-handsontable/issues/199 and will notify you once we get it solved.

1 Like

after some testing, I find if we call setState in component, it will clear all selected filters, https://jsfiddle.net/rupemfg7/ (here you can click button to call setState, and it will clear the selected filter status), seems not just the the issue with afterFilter hooks.

And may I know how long it will take to get it solved, this blocks us to update to Handsontable 8.

Issues are usually added to a milestone right before they are investigated by a developer. This issue hasn’t been added to a milestone yet.

The fact that there’s one other issue with the setState makes us think that it would be wise to get some time to fix them both and test it with other functionalities. I will make sure to let you know once it is fixed but I cannot guarantee any date.

ps. If you own an Ultimate Support plan you can request to speed up the process of fixing an issue without making any extra payment. So I recommend checking the Support plan with the license owner n your company.