React memo with Row selection
Hi folks, I need your help with memorization cells.
I've wrapped cell with React.memo to prevent re-rendering on every render.
Now
oldProps.row.getIsSelected() === newProps.row.getIsSelected()
is always true. I think it's because getIsSelected method returns state of table.
How can I rerender this select cell only when selected is changed?0 Replies