AI SummaryHeuristic scoring (no AI key configured).
Install
Copy this and paste it into Claude Code, Cursor, or any AI assistant:
I want to add the "AnswerOverflow — Cursor Rules" prompt rules to my project. Repository: https://github.com/AnswerOverflow/AnswerOverflow Please read the repo to find the rules/prompt file, then: 1. Download it to the correct location (.cursorrules, .windsurfrules, .github/prompts/, or project root — based on the file type) 2. If there's an existing rules file, merge the new rules in rather than overwriting 3. Confirm what was added
Description
Powering Discord content discovery by making web pages from threads for some of the largest servers, including Valorant, Cloudflare, C#, and Nuxt.
Prefer useEffectEvent for Effect Callbacks
When you need to call a function inside a useEffect that accesses props/state but shouldn't trigger the effect to re-run, use useEffectEvent instead of adding the function to the dependency array.
When to Use
Use useEffectEvent when: • You need to call a callback inside an effect • The callback accesses reactive values (props, state, other functions) • You don't want changes to those values to re-trigger the effect
❌ Avoid
`typescript const [count, setCount] = useState(0); const handleChange = useCallback(() => { console.log('Count is:', count); doSomething(); }, [count, doSomething]); useEffect(() => { if (someCondition) { handleChange(); } }, [someCondition, handleChange]); // handleChange in deps causes unnecessary re-runs `
✅ Prefer
`typescript const [count, setCount] = useState(0); const handleChange = useEffectEvent(() => { console.log('Count is:', count); doSomething(); }); useEffect(() => { if (someCondition) { handleChange(); } }, [someCondition]); // Only re-runs when someCondition changes `
Discussion
Health Signals
My Fox Den
Community Rating
Sign in to rate this booster
Works With
Any AI assistant that accepts custom rules or system prompts