arayaroma/ether/react-custom-hooks
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
Use when extracting reusable stateful logic in React — toggle state, async data fetching with refetch, debounced values. Use before writing ad-hoc useState/useEffect combos that will likely be needed in more than one component.
Install
npx vskill@latest install arayaroma/ether/react-custom-hooksSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
React custom hooks patterns
Toggle state
Async data fetching with a stable refetch
Trap: if refetch closes over fetcher/options directly, a caller passing an inline arrow function makes refetch a new reference every render, which re-triggers any useEffect([..., refetch]) — an infinite fetch loop. Fix: stash the latest fetcher/options in refs, keep refetch itself dependency-free.
For real apps prefer SWR or React Query over hand-rolling this — write this pattern only when those libraries aren't available.
Debounce
Checklist before extracting a hook
- Does the logic show up in 2+ components already, or is it clearly about to? If it's truly
one-off, leave it inline.
- Any callback the hook returns and that callers put in a dependency array (
refetch,toggle)
must be reference-stable (useCallback with an empty or minimal dep array) — otherwise callers get infinite-effect loops for free.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/react-custom-hooks/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/arayaroma/ether/react-custom-hooks)