Skip to content

"undefined is not an object" for "action.scene.name" inside 'reducerCreate' #1159

Closed
@afilp

Description

@afilp
  • react-native-router-flux v3.35
  • react-native v0.33

I get undefined is not an object when evaluating action.scene.name. What is wrong?

Steps to reproduce

This happens with this code:

const reducerCreate = params=>{
  const defaultReducer = Reducer(params);
  console.log(params)
  return (state, action)=>{
      ConfigActions.setCurrentRoute(action.scene.name);
      return defaultReducer(state, action);
    }
}

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