File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -159,7 +159,8 @@ export default function connectAdvanced(
159159 }
160160
161161 initSelector ( ) {
162- const { dispatch, getState } = this . store
162+ const { dispatch } = this . store
163+ let getState = this . store . getState . bind ( this . store )
163164 const sourceSelector = selectorFactory ( dispatch , selectorFactoryOptions )
164165
165166 // wrap the selector in an object that tracks its results between runs
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ export default class Subscription {
55 constructor ( store , parentSub ) {
66 this . subscribe = parentSub
77 ? parentSub . addNestedSub . bind ( parentSub )
8- : store . subscribe
8+ : store . subscribe . bind ( store )
99
1010 this . unsubscribe = null
1111 this . nextListeners = this . currentListeners = [ ]
You can’t perform that action at this time.
0 commit comments