Skip to content

v3.0.0-alpha.2

Pre-release
Pre-release
Compare
Choose a tag to compare
@ZeeCoder ZeeCoder released this 09 Dec 01:51
· 101 commits to master since this release

Removed

  • react-container-query
    • [BREAKING] Removed the "render" prop from ContainerQuery in favour of
      using children. (The former was not even documented.)
    • [BREAKING] Removed the ResizeObserver component in favour of the
      react-resize-observer and
      use-resize-observer packages.
    • [BREAKING] Removed the default export. (Both ContainerQuery and withContainerQuery
      is still available as named exports.)
    • [BREAKING] Removed the stats prop from ContainerQuery. (Use meta instead.)

Changed

  • react-container-query
    • ContainerQuery no longer returns with a "null" size object when a function
      is passed in as the children prop. Instead it returns with {width: 0, height: 0}
      initially, then updates with the observed container element.
    • [BREAKING] ContainerQuery now renders a div root node by default, inside
      of which it renders all children. (Also accepts an as prop to change the
      tag type.)