v3.0.0-alpha.2
Pre-release
Pre-release
·
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
ResizeObservercomponent 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
statsprop from ContainerQuery. (Usemetainstead.)
- [BREAKING] Removed the "render" prop from ContainerQuery in favour of
Changed
react-container-queryContainerQueryno 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]
ContainerQuerynow renders a div root node by default, inside
of which it renders all children. (Also accepts anasprop to change the
tag type.)