diff --git a/dist/bundle.es.js b/dist/bundle.es.js index 909cc06..d9fb456 100644 --- a/dist/bundle.es.js +++ b/dist/bundle.es.js @@ -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 }); } } diff --git a/src/redux/middleware/shared-state.js b/src/redux/middleware/shared-state.js index 7ca42c9..010638b 100644 --- a/src/redux/middleware/shared-state.js +++ b/src/redux/middleware/shared-state.js @@ -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 }); } }