Skip to content

Instantly share code, notes, and snippets.

@cpv123
Last active October 11, 2019 11:19
Show Gist options
  • Save cpv123/73557e25454d877fe91995219a46d14d to your computer and use it in GitHub Desktop.
Save cpv123/73557e25454d877fe91995219a46d14d to your computer and use it in GitHub Desktop.
const areStatesEqual = (nextStore, previousStore) => (
nextStore.basketContents === previousStore.basketContents
)
export default connect(mapStateToProps, null, null, { areStatesEqual })(WrappedComponent)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment