Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding router state and reducer crashes Redux Devtools #125

Closed
hqp6684 opened this issue Jul 20, 2017 · 1 comment
Closed

Adding router state and reducer crashes Redux Devtools #125

hqp6684 opened this issue Jul 20, 2017 · 1 comment

Comments

@hqp6684
Copy link

hqp6684 commented Jul 20, 2017

I've migrated my project to use ngrx v4, Chrome/Firefox Redux Devtools extension was fine until I added router state and reducer to the app as instructed by https://github.com/ngrx/platform/blob/master/MIGRATION.md#ngrxrouter-store

I used the example-app and was able to reproduce the problem

export const reducers: ActionReducerMap<State> = {
  layout: fromLayout.reducer,
  router: routerReducer
};

// console.log all actions
export function logger(reducer: ActionReducer<State>): ActionReducer<any, any> {
  return function(state: State, action: any): State {
    console.log('state', state);
    console.log('action', action);

    return reducer(state, action);
  };
}
...
...
...

export const getShowSidenav = createSelector(
  getLayoutState,
  fromLayout.getShowSidenav
);
@brandonroberts
Copy link
Member

Duplicate of #97

@brandonroberts brandonroberts marked this as a duplicate of #97 Jul 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants