Last active
March 23, 2017 09:33
-
-
Save aakashns/12b08c0d86a0ecdd8995d278dadcc577 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
componentDidMount() { | |
const { store } = this.props.store; | |
this.unlink = linkStoreWithDb(fromDb, fromStore)( | |
firebase.database(), | |
store | |
); | |
} | |
componentWillUnmount() { | |
this.unlink(); | |
} | |
render() { | |
// ... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment