'React.memo(Component) is rendeing by parent component rendering

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!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source