Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Nov 16, 2025

This PR contains the following updates:

Package Change Age Confidence
react-intersection-observer ^9.16.0 -> ^10.0.0 age confidence

Release Notes

thebuilder/react-intersection-observer (react-intersection-observer)

v10.0.0

Compare Source

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: thebuilder/react-intersection-observer@v9.16.0...v10.0.0


Configuration

📅 Schedule: Branch creation - Between 12:00 AM and 04:59 AM, only on Sunday ( * 0-4 * * 7 ) in timezone UTC, Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot added the dependencies Update of dependencies. label Nov 16, 2025
Copy link
Member

@ZeeshanTamboli ZeeshanTamboli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No breaking change/s for us.

@ZeeshanTamboli ZeeshanTamboli merged commit ef29ad2 into master Nov 18, 2025
28 checks passed
@ZeeshanTamboli ZeeshanTamboli deleted the renovate/react-intersection-observer-10.x branch November 18, 2025 06:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Update of dependencies.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants