v3.0.0-alpha.2
Pre-release
Pre-release
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. (Usemeta
instead.)
- [BREAKING] Removed the "render" prop from ContainerQuery in favour of
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 anas
prop to change the
tag type.)