Skip to content

Commit 2a3187f

Browse files
committed
Merge pull request #60 from chriscalo/patch-1
Change `componentDidMount` to `componentDidUpdate`
2 parents 75fccc6 + f071cc9 commit 2a3187f

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)