Closed xlozinguez closed 7 years ago
Update: Not sure if that's the prettiest way but I ended up creating an epic around the @@reduxUiRouter/$stateChangeStart
action to handle fetching the page resources: this way ...
Unfortunately, since the $stateChangeSuccess
action doesn't provide the corresponding state params, I had to use the $stateChangeStart... If someone had to deal with the same sort of thing, I'm all hear :)
Was seeing the same issue but then realized that I forgot to include thunk
and the appropriate middleware when creating the store, that solved the problem :)
$ngReduxProvider.createStoreWith(
reducer,
['ngUiRouterMiddleware', thunk, Logger]
);
@xlozinguez did adding the thunk middleware fix this for you aswell?
@xlozinguez - closing but feel free to reopen if you still have this issue.
Hey there,
I'm getting the following when adding the router to my redux store:
For some context, it was working fine and then I hooked up redux-observables which leverages its own middleware
Note that the router params is correctly added to the store but the state is not correctly handled (no data seems to be stored).
You can test in the context of my demo app.