Skip to content

Instantly share code, notes, and snippets.

@AsishP
Last active November 12, 2018 10:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AsishP/ff6e7f8f9aaf1fb7796f78004988f5d5 to your computer and use it in GitHub Desktop.
Save AsishP/ff6e7f8f9aaf1fb7796f78004988f5d5 to your computer and use it in GitHub Desktop.
// 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