Experience Builder: how to extend the root reducer?

139
0
12-29-2021 01:08 PM
ToddJacobus
New Contributor II

I'm developing a custom widget for Experience Builder 1.6 and I would like to extend the root reducer like this:

 

const newRootReducer = combineReducers({
  existingSlice: existingSliceReducer,
  newSlice: newSliceReducer
})

store.replaceReducer(newRootReducer)

 

Where "existingSlice" is the existing, system reducers and "newSlice" is my own, custom reducer, similarly to how you would do this for code splitting.

I don't understand how to access "existingSlice", as in this example.  Thanks.

0 Kudos
0 Replies