All Versions
32
Latest Version
Avg Release Cycle
36 days
Latest Release
1827 days ago

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)
  • 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 or style props.

    Migrating from v1.x:

    💅 If you're not setting a className or style, no change is required.

    💅 Otherwise add your own element as a child and move the className or style there. Eg:

    • before: <VisibilitySensor className='something' />
    • after: <VisibilitySensor><div className='something' /></VisibilitySensor>