Skip to content

Instantly share code, notes, and snippets.

@pankajparkar
Created February 26, 2019 16:43
Show Gist options
  • Save pankajparkar/adaf0a5e6935ca590c5e70a675db8831 to your computer and use it in GitHub Desktop.
Save pankajparkar/adaf0a5e6935ca590c5e70a675db8831 to your computer and use it in GitHub Desktop.
detectChanges
let detectChanges => () => {
if(currentState != prevState) {
updateView(currentState);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment