find_react_effect_leaks
Detect React useEffect hooks that add event listeners, intervals, or subscriptions without cleanup functions, preventing memory leaks.
Instructions
useEffect that registers listeners/timers/subscriptions (addEventListener/setInterval/.subscribe) without cleanup (return) (heuristic).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>"
},
"name": "find_react_effect_leaks"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name or path of the loaded project |