find_render_triggers
Identify what causes a React component to re-render by analyzing props, state, context, and hooks, with memoization status and optimization suggestions.
Instructions
Analyze what triggers a component to re-render: props, state, context, hooks. Includes memoization status and optimization suggestions. Helps understand re-render causes without reading component internals.
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": {
"projectPath": "<projectPath>",
"filePath": "<filePath>",
"componentName": "<componentName>"
},
"name": "find_render_triggers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | File containing the component | |
| projectPath | Yes | Root path of the project | |
| componentName | Yes | Component name to analyze | |
| includeParentAnalysis | No | Whether to analyze parent render impacts (default: true) |