Skip to content

Commit 6b4a494

Browse files
Rel1cxCopilot
andauthored
Update packages/plugins/eslint-plugin-react-x/src/rules/no-set-state-in-component-did-update.ts
Co-authored-by: Copilot <[email protected]> Signed-off-by: REL1CX <[email protected]>
1 parent a1d31f1 commit 6b4a494

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/plugins/eslint-plugin-react-x/src/rules/no-set-state-in-component-did-update.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export default createRule<[], MessageID>({
3232
});
3333

3434
export function create(context: RuleContext<MessageID, []>): RuleListener {
35-
// Fast path: skip if `componentWillUpdate` is not present in the file
35+
// Fast path: skip if `componentDidUpdate` is not present in the file
3636
if (!context.sourceCode.text.includes("componentDidUpdate")) return {};
3737
return {
3838
CallExpression(node: TSESTree.CallExpression) {

0 commit comments

Comments
 (0)