This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // we have an async "initialize" method that performs several calls consecutively. | |
| // after each step in the async chain, we might have been unmounted already | |
| // and performing any further calls becomes obsolete | |
| class DefaultComponent extends React.Component { | |
| // ... | |
| componentDidMount() { | |
| this._isMounted = true; | |
| this.initialize(); | |
| } | |
| componentWillUnmount() { |