Audit props copied into state
audit_props_to_stateDetects useState(props.x) initializers that cause local state to go stale when parent props change, and flags them for review across a React codebase.
Instructions
Flags useState(props.x) style initializers, the classic bug where a component's local state silently goes stale when its parent's prop changes.
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": {
"rootDir": "<rootDir>"
},
"name": "audit_props_to_state"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rootDir | Yes |