Last active
November 12, 2018 10:11
-
-
Save AsishP/ff6e7f8f9aaf1fb7796f78004988f5d5 to your computer and use it in GitHub Desktop.
This file contains 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
// Check the component properties and state for changes | |
public componentDidUpdate(prevProps : IProps, prevState : IState) : void | |
{ | |
// If properties have changed bind it | |
if(this.props.properties !== prevProps.properties || this.state.stateValue !== prevState.stateValue) | |
{ | |
//Do more things here | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment