0

Even after successfully setting a List ref (as shown in the tree.js example), I seem to be unable to successfully trigger a remeasuring of row heights using public methods (also shown in the tree.js example).

https://plnkr.co/edit/V2JhJL8ZGknrbYgRWDhf?p=preview

var listRef;
function setRef (ref) {
  listRef = ref
  return ref;
}

<List
    ref={setRef}
    ...
/>


listRef.forceUpdateGrid()
btb
  • 21
  • 3

1 Answers1

0

Try using the listRef.recomputeCellSizesAndPositions() method, it should do what you want.