react-grid-layout v0.18.3 Release Notes

Release Date: 2020-03-16 // 2 months ago
  • 🛠 Bugfixes

    • Fix shouldComponentUpdate interfering with droppability (#1152)

    Internal Changes

    • New Enzyme test suite added to prevent regression. If you have time, we could really use more test cases that reflect your use cases!

Previous changes from v0.18.2

  • 🛠 Bugfixes

    • shouldComponentUpdate:
      • A too-aggressive implementation of shouldComponentUpdate was shipped in 0.18.0-0.18.1 (#1123), which did not compare the children object. While this works well in many simple implementations of RGL, it breaks in more complex applications.
      • Reference equality of props.children and nextProps.children is now added to <ReactGridLayout> and <GridItem>. If you wish to take advantage of the performance improvements from the shouldComponentUpdate work, memoize your children.
      • A section has been added to the README explaining how this works.
      • Fixed #1150, #1151.