Issue: Adding enhancer that depends on a reducer
There are enhancers that depend on a reducer that adds to the state. I tried adding the Redux-first-router enhancer, but it throws an error that the state hasn't been set, because it's dependent on the Redux-first-router reducer.
The problem seems to be that redux-dynamic-modules adds the enhancer before adding the first/startup module. I'd like to be able to pass a reducer to the internal createStore with the RFR enhancer.
Is there a way to accomplish this?
Thanks.
Can you try passing some initialState and see if it works?
Hey @navneet-g. I'm already passing some initial state and it fails, because it expects certain state from Redux First Router, e.g. the location/page I'm on, the query string etc. I can't fill some dummy values into the location state because that would make RFR think I'm on a wrong page.
Just stumbled upon the exact same problem. I think this is solvable by allowing to add a reducer in the moduleStoreSettings.