I have 2 components. The first is a table based on fixed-data-table-2 (about 100 lines, there will be more) when I click on a table cell, I want to show a modal window. In the browser, I see the warning [Violation] 'click' handler took 204ms , despite the fact that I haven’t even rendered modalku just changed the state in the parent component.

I think that this is due to the fact that the table is redrawn after changing the state, but why so long? Shouldn't react have to do diff and render only what has changed? Correct if not right.

How can you get rid of this, maybe somehow organize the interaction of components in another way? thank

  • if you are using redox out of the box and change the state of the store. then yes, the whole tree will be redrawn. as the redox is immutable and a new object reference arrives in the reactant component ... - xFloooo
  • Lay out a code sample, so in words it is difficult to help - Dan

0