Skip to content

Instantly share code, notes, and snippets.

@aakashns
Last active March 23, 2017 09:33
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 aakashns/12b08c0d86a0ecdd8995d278dadcc577 to your computer and use it in GitHub Desktop.
Save aakashns/12b08c0d86a0ecdd8995d278dadcc577 to your computer and use it in GitHub Desktop.
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