File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -191,7 +191,7 @@ function unliftState(liftedState) {
191
191
/**
192
192
* Unlifts the DevTools store to act like the app's store.
193
193
*/
194
- function unliftStore ( liftedStore ) {
194
+ function unliftStore ( liftedStore , reducer ) {
195
195
return {
196
196
...liftedStore ,
197
197
devToolsStore : liftedStore ,
@@ -201,6 +201,12 @@ function unliftStore(liftedStore) {
201
201
} ,
202
202
getState ( ) {
203
203
return unliftState ( liftedStore . getState ( ) ) ;
204
+ } ,
205
+ getReducer ( ) {
206
+ return reducer ;
207
+ } ,
208
+ replaceReducer ( nextReducer ) {
209
+ liftedStore . replaceReducer ( liftReducer ( nextReducer ) ) ;
204
210
}
205
211
} ;
206
212
}
@@ -242,7 +248,7 @@ export default function devTools() {
242
248
return next => ( reducer , initialState ) => {
243
249
const liftedReducer = liftReducer ( reducer , initialState ) ;
244
250
const liftedStore = next ( liftedReducer ) ;
245
- const store = unliftStore ( liftedStore ) ;
251
+ const store = unliftStore ( liftedStore , reducer ) ;
246
252
return store ;
247
253
} ;
248
254
}
You can’t perform that action at this time.
0 commit comments