Closed b2whats closed 6 years ago
if change file createState.js on:
function createState(reducer$, initialState$ = Rx.Observable.of({})) {
const publisher$ = initialState$
.merge(reducer$)
.scan((state, [scope, reducer]) => ({ ...state, [scope]: reducer(state[scope]) }))
.publishReplay(1)
publisher$.connect()
return publisher$
}
there will be no error, the component will receive primary merge condition