Skip to content

Commit

Permalink
Change componentDidMount to componentDidUpdate
Browse files Browse the repository at this point in the history
  • Loading branch information
chriscalo authored and yannickcr committed Apr 15, 2015
1 parent 56c4d58 commit d417c09
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 d417c09

Please sign in to comment.