Open RavilM opened 4 years ago
Hello! My store: transition: { bus: { .... } } I have a situation where I need to add new reducer for store with the same “transition” key using another module: transition: { bus: { .... }, train: { .... } }
transition: { bus: { .... } }
transition: { bus: { .... }, train: { .... } }
My code first module:
export function getBusModule() { return { id: 'bus', reducerMap: { transition: reducerBus }, }; }
Code second module:
export function getTrainModule() { return { id: 'train', reducerMap: { transition: reducerTrain }, }; }
How can i do it?
I try did so:
export function getTrainModule() { return { id: 'train', reducerMap: { transition: { train: reducerTrain } }, }; }
But i had ts error:
Hello! My store:
transition: { bus: { .... } }
I have a situation where I need to add new reducer for store with the same “transition” key using another module:transition: { bus: { .... }, train: { .... } }
My code first module:
Code second module:
How can i do it?
I try did so:
But i had ts error: