plans/issues/issue-2509.md
useInView docs report (examples already corrected on motion.dev)Executor instructions: Verification + housekeeping only; no code changes. On any STOP condition, stop and report. When done, update the status row for this issue in
plans/issues/README.md.Drift check (run first):
gh api repos/motiondivision/motion/issues/2509 --jq .state→ must beopen.
42bfbe3ed, 2026-06-112024 report: two code examples on the then-current docs page
(framer.com/motion/use-in-view — the root and margin sections) called
useInView(options) without the required ref first argument. The docs have
since migrated to motion.dev and both examples are already corrected
(verified 2026-06-11 at https://motion.dev/docs/react-use-in-view: the root
example reads useInView(ref, { root: container }), the margin example reads
useInView(ref, { margin: "0px 100px -50px 0px" })). Docs content lives
outside this repository, and the in-repo source
(packages/framer-motion/src/utils/use-in-view.ts) carries no JSDoc examples
that could repeat the error. Nothing remains actionable here; the issue
should be closed so triage stops re-reading it.
packages/framer-motion/src/utils/use-in-view.ts:14-23 — signature is
useInView(ref, options?); the file contains no JSDoc usage examples
(verified at planning: no @example/code blocks anywhere in the file).plans/README.md, "Findings considered and rejected"):
docs-only findings are out of scope for plans here because motion.dev docs
live outside this repository.| Purpose | Command | Expected on success |
|---|---|---|
| Re-verify docs | fetch https://motion.dev/docs/react-use-in-view (WebFetch or browser) | both root and margin examples pass ref first |
| Re-verify no in-repo JSDoc | grep -n "@example|useInView({" packages/framer-motion/src/utils/use-in-view.ts | no matches |
| Comment | gh api repos/motiondivision/motion/issues/2509/comments -f body="…" | created |
| Close | gh api -X PATCH repos/motiondivision/motion/issues/2509 -f state=closed -f state_reason=completed | closed |
In scope: the two re-verifications, one comment, gated close. Out of scope: any edits in this repo; the motion.dev docs repo.
Run the two verification commands above. Both flagged examples on the live
page must include ref as the first argument, and the in-repo hook must have
no example-bearing JSDoc.
Verify: as stated; if either check fails, see STOP conditions.
Thank the reporter; state both examples were fixed in the docs migration to
motion.dev (link the page and quote the corrected root example); note docs
content now lives outside this repo and future docs issues are best filed
against the docs.
Verify: comment visible.
Only if the row for issue-2509 in plans/issues/README.md reads APPROVED:
close with state_reason=completed.
Verify: gh api repos/motiondivision/motion/issues/2509 --jq .state → closed.
git status cleanplans/issues/README.md status row updatedAPPROVED → stop after Step 2.