As React Documentation says:
componentDidUpdate()
is invoked immediately after updating occurs
But I've noticed that componentDidUpdate()
is invoked even a browser DOM element isn't updated.
So, what does the React Documentation mean by updating occurs?
"updating" is not DOM updates only but is part of the life cycle.
It occurs when there are new props
, state updates and force updates
You can see this part in this diagram taken from the DOCS
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With