Last active
April 25, 2019 20:34
-
-
Save erikras/99eb70f9e07feeab285dc16455166547 to your computer and use it in GitHub Desktop.
Redux Dead Drop Example
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
componentWillReceiveProps(nextProps) { | |
if(!this.props.deadDrop && nextProps.deadDrop) { | |
// dispatch an action to clear the value | |
this.props.clearDeadDrop() | |
// do what your case officer has instructed, Agent | |
this.performOperation(nextProps.deadDrop) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment