Skip to content

Conversation

@SCdF
Copy link
Owner

@SCdF SCdF commented Jan 20, 2026

Summary

  • Consolidates 5 instances of useEffect dispatching setContext into a single usePageContext hook
  • Hook is co-located with pageSlice.ts in the Page feature folder
  • Uses useLayoutEffect for synchronous context updates before paint
  • Also updates CLAUDE.md to not require draft PRs

Test plan

  • All 87 client tests pass
  • Type checking passes
  • Linting passes

🤖 Generated with Claude Code

Consolidates 5 instances of useEffect dispatching setContext into a single
usePageContext hook in pageSlice.ts. This centralizes the pattern and uses
useLayoutEffect for synchronous context updates before paint.

Also updates CLAUDE.md to not require draft PRs.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@SCdF SCdF merged commit 32f3710 into main Jan 20, 2026
2 checks passed
@SCdF SCdF deleted the refactor-page-context-effects branch January 20, 2026 12:30
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