Skip to content

v2.7.1

Compare
Choose a tag to compare
@joshwcomeau joshwcomeau released this 23 Nov 12:42
· 138 commits to master since this release

Fix bug with children that render null

Previously, we fixed an issue with null children:

<FlipMove>
  {null}
</FlipMove>

We hadn't accounted, however, for children that render null:

<FlipMove>
  <CustomComponent />
</FlipMove>

class CustomComponent extends Component {
  render() {
    return null;
  }
}

This patch addresses this second case, by avoiding doing any DOM manipulation for elements that don't return a DOM node.