pass getState to calback too

This commit is contained in:
Sean Yesmunt 2019-10-14 23:56:14 -04:00
parent 2a9263c89d
commit 48bc1e18f9
2 changed files with 2 additions and 2 deletions

2
dist/bundle.es.js vendored
View file

@ -1470,7 +1470,7 @@ const buildSharedStateMiddleware = (actions, sharedStateFilters, sharedStateCb)
if (sharedStateCb) {
// Pass dispatch to the callback to consumers can dispatch actions in response to preference set
sharedStateCb(dispatch);
sharedStateCb({ dispatch, getState });
}
}

View file

@ -43,7 +43,7 @@ export const buildSharedStateMiddleware = (
if (sharedStateCb) {
// Pass dispatch to the callback to consumers can dispatch actions in response to preference set
sharedStateCb(dispatch);
sharedStateCb({ dispatch, getState });
}
}