Created
June 18, 2017 16:19
-
-
Save Louiefigz/bbcc6f13296784ad5b0d74f2278165fe to your computer and use it in GitHub Desktop.
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
| componentWillReceiveProps(nextProps){ | |
| console.log('d') | |
| if(nextProps !== this.props){ | |
| this.setState({ | |
| complete: false | |
| }) | |
| } | |
| } | |
| shouldComponentUpdate(nextProps, nextState){ | |
| console.log('a'); | |
| return true | |
| } | |
| componentWillUpdate(nextProps, nextState){ | |
| console.log('b') | |
| } | |
| componentDidUpdate(prevProps, prevState){ | |
| console.log('c') | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment