@procore-canary/redux-modules
Advanced tools
Comparing version 2.0.1-canary.683.5cd5b63.0 to 2.0.1-canary.686.1f8a8d0.0
@@ -22,7 +22,3 @@ "use strict"; | ||
const selectorFactory = (mapState, modules) => (dispatch) => (state, ownProps) => { | ||
const props = { | ||
...mapState(state, ownProps), | ||
...mapDispatch(ownProps.dispatch || dispatch, modules), | ||
...ownProps, | ||
}; | ||
const props = Object.assign(Object.assign(Object.assign({}, mapState(state, ownProps)), mapDispatch(ownProps.dispatch || dispatch, modules)), ownProps); | ||
return props; | ||
@@ -29,0 +25,0 @@ }; |
@@ -29,7 +29,4 @@ "use strict"; | ||
} | ||
return { | ||
actionName, | ||
type, | ||
...transformation, | ||
}; | ||
return Object.assign({ actionName, | ||
type }, transformation); | ||
} | ||
@@ -36,0 +33,0 @@ /** |
@@ -31,7 +31,4 @@ "use strict"; | ||
} | ||
return { | ||
actionName, | ||
type, | ||
...transformation, | ||
}; | ||
return Object.assign({ actionName, | ||
type }, transformation); | ||
} | ||
@@ -38,0 +35,0 @@ function createSlice(options) { |
{ | ||
"name": "@procore-canary/redux-modules", | ||
"version": "2.0.1-canary.683.5cd5b63.0", | ||
"version": "2.0.1-canary.686.1f8a8d0.0", | ||
"description": "A library for defining clear, boilerplate free Redux reducers.", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
46434
59
505