`componentDidMount`, which is after a React component has been rendered. This contradicts the parent commenter directly but I'm fine with that.
The React lifecycle has `componentDidMount` for doing stuff (at most once) after rendering.
Re:Simple React Patterns
by always_good on Friday November 10, 2017 @11:02AM
(#15670733)
I don't understand what you're saying.
Once the component mounts, then it can be unmounted. The upstream comment is talking about when you have a promise that is still running after unmount.
But I would never do something like that in, say, the constructor of a WPF/UWP windows app as those have "Loaded" or "Loading" events of some kind (which is parallel to componentDidMount).