Skip to content

Logging previous and next state incorrect #152

@brycepavey

Description

@brycepavey

When using redux-logger in the Chrome debugger the prev state is incorrect, and always matches next-state, seems to be a reference error. This is not an issue in the (now unsupported) react-native-redux-router though.
I'm unsure if this is an issue local to my reducer, or an internal issue of react-native-router-flux.

Here's the action I'm performing in the reducer

case ON_PUSH:
      var newRouterState = action.routerState
      newRouterState.push(action.route)
      return {
        ...state,
        routerState: newRouterState
      };

Attached image shows the routerState array containing two objects before and after the ON_PUSH action, though prev state should only contain one.

screen shot 2016-01-27 at 2 02 03 pm

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions