All Versions
32
Latest Version
Avg Release Cycle
36 days
Latest Release
1708 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>