@@ -11,7 +11,7 @@ function getDisplayName(WrappedComponent) {
11
11
const defaultMapStateToProps = ( ) => ( { } ) ;
12
12
export default function connect ( mapStateToProps ) {
13
13
const shouldSubscribe = ! ! mapStateToProps ;
14
- const finnalMapStateToProps = mapStateToProps || defaultMapStateToProps ;
14
+ const finalMapStateToProps = mapStateToProps || defaultMapStateToProps ;
15
15
return function wrapWithConnect ( WrappedComponent ) {
16
16
const tempProps = omit ( WrappedComponent . props || { } , [ 'store' ] ) ;
17
17
const props = {
@@ -30,13 +30,13 @@ export default function connect(mapStateToProps) {
30
30
this . store = this . storeContext . store ;
31
31
this . preProps = omit ( getOptionProps ( this ) , [ '__propsSymbol__' ] ) ;
32
32
return {
33
- subscribed : finnalMapStateToProps ( this . store . getState ( ) , this . $props ) ,
33
+ subscribed : finalMapStateToProps ( this . store . getState ( ) , this . $props ) ,
34
34
} ;
35
35
} ,
36
36
watch : {
37
37
__propsSymbol__ ( ) {
38
38
if ( mapStateToProps && mapStateToProps . length === 2 ) {
39
- this . subscribed = finnalMapStateToProps ( this . store . getState ( ) , this . $props ) ;
39
+ this . subscribed = finalMapStateToProps ( this . store . getState ( ) , this . $props ) ;
40
40
}
41
41
} ,
42
42
} ,
@@ -53,7 +53,7 @@ export default function connect(mapStateToProps) {
53
53
return ;
54
54
}
55
55
const props = omit ( getOptionProps ( this ) , [ '__propsSymbol__' ] ) ;
56
- const nextSubscribed = finnalMapStateToProps ( this . store . getState ( ) , props ) ;
56
+ const nextSubscribed = finalMapStateToProps ( this . store . getState ( ) , props ) ;
57
57
if (
58
58
! shallowEqual ( this . preProps , props ) ||
59
59
! shallowEqual ( this . subscribed , nextSubscribed )
0 commit comments