Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Choose a tag to compare

@thebuilderthebuilder released this 28 Oct 15:02

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

✨ New

  • useOnInView hook — a no-re-render alternative touseInView 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 useuseOnInView.

⚠️ Breaking Changes

  • useInView,useOnInView, and<InView> now ignore the browser’s initialinView === false emission foronChange 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 foruseOnInView, covering thresholds,triggerOnce,skip toggling, merged refs, and multiple observers on the same node.

What's Changed

New Contributors

  • @Akshay-Vs made their first contribution in#728
  • @Copilot made their first contribution in#731

Full Changelog:v9.16.0...v10.0.0

Contributors

  • @thebuilder
  • @jantimon
  • @dependabot
  • @Akshay-Vs
thebuilder, jantimon, and 2 other contributors
Assets2
Loading
lwhiteley reacted with eyes emoji
1 person reacted

[8]ページ先頭

©2009-2025 Movatter.jp