Closed manuelreneduran closed 5 years ago
My instinct here is that the carousel is re-rendering because the state is changing on mouseEnter and onMouseLeave. I'm going to try refactoring these components to React.PureComponent to keep them from re-rerendering and see if that does anything.
PureComponent did not work. Shelving this feature for later.
My instinct here is that the carousel is re-rendering because the state is changing on mouseEnter and onMouseLeave. I'm going to try refactoring these components to React.PureComponent to keep them from re-rerendering and see if that does anything.