thebuilder/react-intersection-observer
 Watch   
 Star   
 Fork   
6 hours ago
react-intersection-observer

v11.0.1

What's Changed

New Contributors

Full Changelog: https://github.com/thebuilder/react-intersection-observer/compare/v11.0.0...v11.0.1

27 days ago
react-intersection-observer

v11.0.0

v11.0.0

v11 delivers a ground-up observer lifecycle rewrite, making observation and cleanup more resilient across React 17, 18, and 19. Shared callback-ref handling, idempotent cleanup, and improved threshold behavior make hooks more predictable in real-world mounting and unmounting scenarios.

It also introduces a new Blume-powered documentation site with clearer guides and examples. Storybook and the README have been refreshed to make getting started easier.

Smaller improvements include private vulnerability reporting, stronger PR quality checks with Fallow, dependency updates, and expanded observer lifecycle tests.

What's Changed

Full Changelog: https://github.com/thebuilder/react-intersection-observer/compare/v10.1.0...v11.0.0

2026-07-10 21:27:37
react-intersection-observer

v10.1.0

What's Changed

Full Changelog: https://github.com/thebuilder/react-intersection-observer/compare/v10.0.3...v10.1.0

2026-02-18 22:36:17
react-intersection-observer

v10.0.3

What's Changed

New Contributors

Full Changelog: https://github.com/thebuilder/react-intersection-observer/compare/v10.0.2...v10.0.3

2026-01-16 04:12:33
react-intersection-observer

v10.0.2

What's Changed

New Contributors

Full Changelog: https://github.com/thebuilder/react-intersection-observer/compare/v10.0.0...v10.0.2

2025-10-28 22:50:49
react-intersection-observer

v10.0.0

Based on the great work in #718 by @jantimon - This release adds the new useOnInView hook.

✨ New

  • useOnInView hook — a no-re-render alternative to useInView that delivers (inView, entry) to your callback while returning a ref you can attach to any element. Designed for tracking, analytics, and other side effect heavy workloads where state updates are unnecessary.
  • IntersectionChangeEffect / IntersectionEffectOptions types — exported helper types that describe the new hook’s callback and options surface.
  • Storybook playground + documentation — new story, README section, and JSDoc example demonstrating how to use useOnInView.

⚠️ Breaking Changes

  • useInView, useOnInView, and <InView> now ignore the browser’s initial inView === false emission for onChange events, so handlers only fire once a real visibility change occurs, while still reporting all subsequent enter/leave transitions.

🧪 Testing

  • Added a dedicated Vitest suite for useOnInView, covering thresholds, triggerOnce, skip toggling, merged refs, and multiple observers on the same node.

What's Changed

New Contributors

Full Changelog: https://github.com/thebuilder/react-intersection-observer/compare/v9.16.0...v10.0.0

2025-03-06 04:43:03
react-intersection-observer
2025-01-21 19:05:40
react-intersection-observer

v9.15.1

9.15.1 (2025-01-21)

Bug Fixes

Fixes and improvements to react-intersection-observer/test-utils

  • always recreate the IntersectionObserver mock (c720914)
  • improve test lib detection (1858e43)
  • use isMockFunction to detect if the IntersectionObserver is being mocked (189133f)
2025-01-14 17:49:15
react-intersection-observer

v9.15.0

9.15.0 (2025-01-14)

Features

  • restore beforeEach in test utils (788dd47)
2024-12-31 05:39:25
react-intersection-observer

v9.14.1

9.14.1 (2024-12-30)

Bug Fixes

  • ensure browser environment in test-utils (6e459f2)