unstale

npm / react-intersection-observer

react-intersection-observer

What changed in react-intersection-observer 10 to 11, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-18.

3 breaking4 new APIs and options6 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli 0.1.1 on npm

react-intersection-observer 114 changes

Fixes and other changes 4

  • InView resumes observation when triggerOnce is disabled.

    11.0.1release notes

  • Callback ref cleanup compatibility is improved across React 17, 18, and 19.

    11.0.0release notes

  • Observation cleanup is now idempotent, making cleanup more resilient.

    11.0.0release notes

  • Thresholds are respected before trigger-once cleanup.

    11.0.0release notes

react-intersection-observer 109 changes

Breaking changes 3

  • Ignores the browser’s initial inView === false emission for onChange; handlers fire only after a real visibility change, while subsequent transitions are still reported.

    10.0.0release notes

  • Ignores the browser’s initial inView === false emission for onChange; handlers fire only after a real visibility change, while subsequent transitions are still reported.

    10.0.0release notes

  • Ignores the browser’s initial inView === false emission for onChange; handlers fire only after a real visibility change, while subsequent transitions are still reported.

    10.0.0release notes

New APIs and options 4

  • Adds support for the scrollMargin option for intersection observers.

    10.1.0release notes

  • Adds an exported helper type describing the new hook’s callback surface.

    10.0.0release notes

  • Adds an exported helper type describing the new hook’s options surface.

    10.0.0release notes

  • Adds a no-re-render hook that calls a callback with (inView, entry) and returns a ref, for tracking and other side-effect-heavy workloads.

    10.0.0release notes

Fixes and other changes 2

  • Prevents callbacks from being skipped when triggerOnce is used with merged refs.

    10.0.3release notes

  • Fixes a React 17 webpack build error for useInsertionEffect.

    10.0.2release notes