1

I have this optimization problem:

My memo child component is rerendering when I change a state in parent,

export default React.memo(connect(stateToProps)(React.memo(Compromisos)));

Currently, I am expoting him like that (I also proved to delete one of the memoization one at a time)

memo component renders by parent:

React profiler img

Thanks you a lot!

Lin Du
  • 88,126
  • 95
  • 281
  • 483

0 Answers0