@@ -29,11 +29,17 @@ function match(arg, factories, name) {
2929 }
3030
3131 return ( dispatch , options ) => {
32- throw new Error ( `Invalid value of type ${ typeof arg } for ${ name } argument when connecting component ${ options . wrappedComponentName } .` )
32+ throw new Error (
33+ `Invalid value of type ${ typeof arg } for ${ name } argument when connecting component ${
34+ options . wrappedComponentName
35+ } .`
36+ )
3337 }
3438}
3539
36- function strictEqual ( a , b ) { return a === b }
40+ function strictEqual ( a , b ) {
41+ return a === b
42+ }
3743
3844// createConnect with default args builds the 'official' connect behavior. Calling it with
3945// different options opens up some testing and extensibility scenarios
@@ -57,15 +63,23 @@ export function createConnect({
5763 ...extraOptions
5864 } = { }
5965 ) {
60- const initMapStateToProps = match ( mapStateToProps , mapStateToPropsFactories , 'mapStateToProps' )
61- const initMapDispatchToProps = match ( mapDispatchToProps , mapDispatchToPropsFactories , 'mapDispatchToProps' )
66+ const initMapStateToProps = match (
67+ mapStateToProps ,
68+ mapStateToPropsFactories ,
69+ 'mapStateToProps'
70+ )
71+ const initMapDispatchToProps = match (
72+ mapDispatchToProps ,
73+ mapDispatchToPropsFactories ,
74+ 'mapDispatchToProps'
75+ )
6276 const initMergeProps = match ( mergeProps , mergePropsFactories , 'mergeProps' )
6377
6478 return connectHOC ( selectorFactory , {
6579 // used in error messages
6680 methodName : 'connect' ,
6781
68- // used to compute Connect's displayName from the wrapped component's displayName.
82+ // used to compute Connect's displayName from the wrapped component's displayName.
6983 getDisplayName : name => `Connect(${ name } )` ,
7084
7185 // if mapStateToProps is falsy, the Connect component doesn't subscribe to store state changes
0 commit comments