https://reactjs.org/blog/2018/03/27/update-on-async-renderin...
(TLDR: Use `componentDidUpdate` for this.)
Have you had a chance to skim through it?