Skip to content

Commit

Permalink
Merge pull request #60 from chriscalo/patch-1
Browse files Browse the repository at this point in the history
Change `componentDidMount` to `componentDidUpdate`
  • Loading branch information
yannickcr committed Apr 13, 2015
2 parents 75fccc6 + f071cc9 commit 2a3187f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/rules/no-did-update-set-state.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Prevent usage of setState in componentDidMount (no-did-update-set-state)
# Prevent usage of setState in componentDidUpdate (no-did-update-set-state)

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

Expand Down

0 comments on commit 2a3187f

Please sign in to comment.