All Versions
32
Latest Version
Avg Release Cycle
36 days
Latest Release
1733 days ago
Changelog History
Page 4
Changelog History
Page 4
-
v2.1.0 Changes
- ๐ new optional prop
partialVisibility
changes the behaviour of the sensor, so that it considers an element to be visible if it is at least partially visible (#15)
- ๐ new optional prop
-
v2.0.0 Changes
- sensor DOM node is passed in as children rather than the component always rendering its own
<div>
(#13) - ๐
this also means the component also no longer accepts
className
orstyle
props.
Migrating from
v1.x
:๐ If you're not setting a
className
orstyle
, no change is required.๐ Otherwise add your own element as a child and move the
className
orstyle
there. Eg:- before:
<VisibilitySensor className='something' />
- after:
<VisibilitySensor><div className='something' /></VisibilitySensor>
- sensor DOM node is passed in as children rather than the component always rendering its own