Skip to content

test: characterize hook observer lifecycle#764

Merged
thebuilder merged 1 commit into
mainfrom
feat/005-hook-lifecycle-characterization
Jul 14, 2026
Merged

test: characterize hook observer lifecycle#764
thebuilder merged 1 commit into
mainfrom
feat/005-hook-lifecycle-characterization

Conversation

@thebuilder

Copy link
Copy Markdown
Owner

Summary

  • characterize useInView lifecycle behavior, observer churn, callback freshness, target movement, skip handling, and Strict Mode cleanup
  • characterize useOnInView render behavior, option changes, ref replacement, idempotent cleanup, and diagnostics
  • record the current extra useInView attachment commit as the single baseline expected to change in the follow-up refactor

This is the test-only prerequisite for the shared callback-ref observer refactor tracked in #758. It intentionally does not close that issue.

Verification

  • corepack pnpm exec vitest run src/__tests__/useInView.test.tsx src/__tests__/useOnInView.test.tsx
  • corepack pnpm exec vitest run
  • corepack pnpm exec tsc --noEmit
  • corepack pnpm exec biome check src/__tests__/useInView.test.tsx src/__tests__/useOnInView.test.tsx src/test-utils.ts
  • React 17, 18, and 19 hook tests and typechecks in disposable worktrees

@bolt-new-by-stackblitz

Copy link
Copy Markdown

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@vercel

vercel Bot commented Jul 14, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
react-intersection-observer Ready Ready Preview, Comment Jul 14, 2026 11:38am

@pkg-pr-new

pkg-pr-new Bot commented Jul 14, 2026

Copy link
Copy Markdown
npm i https://pkg.pr.new/react-intersection-observer@764

commit: 2f9974b

@thebuilder thebuilder marked this pull request as ready for review July 14, 2026 11:39
@thebuilder thebuilder merged commit 062a7c4 into main Jul 14, 2026
9 checks passed
@thebuilder thebuilder deleted the feat/005-hook-lifecycle-characterization branch July 14, 2026 11:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant