Closed kakadiadarpan closed 6 years ago
List
uses PureComponent, so it only update when it's props change. You can force it to re-render by calling forceUpdate on it or by passing it an extra prop that will change every time your data changes.
@clauderic Thanks for the info. I think this is something that should be there in the documentation.
I'm using react-tiny-virtual-list to show a list which can be sorted. On sorting the data, there is no effect on the rendered list. But when I scroll, the list gets re-rendered.