Skip to content

Commit f071cc9

Browse files
committed
Change componentDidMount to componentDidUpdate
1 parent 75fccc6 commit f071cc9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/rules/no-did-update-set-state.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Prevent usage of setState in componentDidMount (no-did-update-set-state)
1+
# Prevent usage of setState in componentDidUpdate (no-did-update-set-state)
22

33
Updating the state after a component update will trigger a second `render()` call and can lead to property/layout thrashing.
44

0 commit comments

Comments
 (0)