Hi,
I have a react project and whenever I use local state (useState) to cause a re-render (by triggering setValue), I get the following issue. I can’t understand what could be causing this, is this something you’ve come across before?
key: "handsontableAfterViewRender",
value: function handsontableAfterViewRender() {
var _this3 = this;
this.renderersPortalManager.setState({
portals: _toConsumableArray(this.portalCacheArray)
}, function () {
_this3.portalCacheArray = [];
});
}
Here is a demo to help show the issue. Try clicking ‘Submit’. It should throw a setState error: https://jsfiddle.net/c0u1oj8r/