Skip to content

Cannot read property 'dispatch' of undefined #320

@bartonhammond

Description

@bartonhammond

I am not using either Flux or Redux.

class Main extends Component {
  componentDidMount() {
    Actions.Login();
  }

Error line in Actions.js

72:    debug("ROUTER DELEGATE PROPS:"+ router.delegate.props.dispatch)

My route definitions:

    <Router hideNavBar={true}>
      <Schema name="tab"
                  type="switch"
                  icon={TabIcon} />

      <Route name="App"
                 component={App}
                 initial={true}        
                 title="App"/>

      <Route name="Login"
                 component={Login}
                 title="Login"
                 type="replace"/>

      <Route name="Tabbar"
                 initial="{true}"
                 type="replace">

        <Router footer={TabBar}
                    showNavigationBar={false}>

          <Route name="Main"
                     schema="tab"
                     title="Main"
                     iconName={"home"}
                     hideNavBar={true}
                     component={Main}
                     initial={true}/>

        </Router>
      </Route>

    </Router>

screen shot 2016-03-15 at 5 46 54 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