This issue has been discussed, but seems not resolved.
The docs say
componentDidUpdate() is invoked immediately after updating occurs.
Many will agree that saying "after updating occurs" is rather vague. What is meant with updating? Is it called only when state changes? Or maybe when props changed? Can it be called if neither state, nor props changed?
This issue has been discussed, but seems not resolved.
The docs say
Many will agree that saying "after updating occurs" is rather vague. What is meant with updating? Is it called only when state changes? Or maybe when props changed? Can it be called if neither state, nor props changed?