» Tag
hooks
10 postsStop Hooks: Enforcing Claude Code Behavior with Hard Constraints
Stop hooks enforce Claude Code behavior with hard constraints, ensuring reliable adherence to rules.
Importance of Running Tests in CLAUDE.md and How Hooks Help
Hooks in CLAUDE.md provide a critical mechanism to ensure tests are always run. Explore how these mechanisms function in this article.
Why Your Claude Code Hook Doesn't Fire on Windows
Discover why your Claude Code hook fails on Windows and explore solutions.
CommitBrief — AI code reviews, right in your terminal
A provider-agnostic, local-first CLI that reviews your staged changes, a historic range, or a whole GitHub pull request. Zero telemetry, no server. Free and open source.
commitbrief.comReact Compiler in 2026: What It Actually Memoizes
The React Compiler automatically memoizes components, hooks, and callbacks. Learn how to enable it with Next.js.
Identify Slow Hooks in Claude Code — Measure p95 with a One-Line Wrapper
A new wrapper for Claude Code logs execution times of hooks, helping identify performance issues by measuring p95.
Advanced Control and Simulation with HookOnV2 in Xahau
Explore directed hooks and simulation features with HookOnV2 in the Xahau ecosystem. Important updates for developers.
Refactoring Habit Streak Logic Into a Single React Hook
How habit-streak calculation—timezones, night shifts, custom reset hours—can be centralized into a single reusable React hook, with notes on testability and UX pitfalls.
React useLocalStorage: SSR-Safe Persistent State Hook
A look at the four hidden bugs in hand-rolled useState+useEffect localStorage patterns, and how the useLocalStorage hook fixes SSR, sync, and serialization issues.
React useCallback vs useMemo: When Do You Really Need Them
Wrapping every function in useCallback can hurt performance instead of helping. Learn a profiler-first approach to knowing when useMemo and useCallback actually matter.
Claude Code Hooks: Real Examples and Their Applications
Create automatic commands with Claude Code hooks. Boost efficiency with examples of PreToolUse, PostToolUse, and Stop.