Skip to content

Instantly share code, notes, and snippets.

@nattatorn-dev
Created September 8, 2017 10:14
Show Gist options
  • Save nattatorn-dev/d4f51ae64ceb3d0f67af6f6857b5ecf3 to your computer and use it in GitHub Desktop.
Save nattatorn-dev/d4f51ae64ceb3d0f67af6f6857b5ecf3 to your computer and use it in GitHub Desktop.
recompose lifecycle
// ...
lifecycle({
componentWillMount() {
const { subscribeToMessages } = this.props;
return subscribeToMessages();
},
})
)(ChatMessages);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment