Skip to content

Commit

Permalink
tmp - storeKey support
Browse files Browse the repository at this point in the history
  • Loading branch information
edvincandon committed Oct 23, 2018
1 parent d2e8b0c commit cd7c1ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/connector.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ const normalizeMapState = mapState => {
throw new Error('[revux] - mapState provided to connect is invalid')
}

const connector = (_mapState = defaultMapState, mapDispatch = defaultMapDispatch) => component => {
const connector = (_mapState = defaultMapState, mapDispatch = defaultMapDispatch, options = {}) => component => {
const mapState = normalizeMapState(_mapState)

/* we should be able to pass a storeKey to connect and reflect changes in Provider */
return {
name: `connect-${component.name}`,
mixins: [component],
Expand Down

0 comments on commit cd7c1ff

Please sign in to comment.