You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was using react-native@0.8.0-rc with no issues, then I upgraded to the full release and now I'm getting this error: dispatch is not a function. (In ‘dispatch(actionCreator.apply(undefined, arguments))’, ‘dispatch’ is undefined)
When I downgrade back to react-native@0.8.0-rc, it works fine and goes away. I have no idea what changed. Maybe it's a react-native issue?
These are my containers... I can provide more if needed. Right now it's pretty basic, mostly just following the examples.
// VetoApp.jsimportReact,{Component}from'react-native'import{bindActionCreators}from'redux'importMainfrom'../components/Main'import*asViewActionsfrom'../actions/view'import{connect}from'react-redux/native'
@connect(state=>({state: state.view}))exportdefaultclassCounterAppextendsComponent{render(){const{ state, dispatch }=this.propsconsole.log(dispatch)// results in undefinedreturn(<MainviewSettings={state}{...bindActionCreators(ViewActions,dispatch)}/>)}}
EDIT: now downgrading doesn't work. I reverted my app to the exact same state before and it doesn't work. dispatch is not a function. No idea what suddenly changed.
The text was updated successfully, but these errors were encountered:
I was using react-native@0.8.0-rc with no issues, then I upgraded to the full release and now I'm getting this error:
dispatch is not a function. (In ‘dispatch(actionCreator.apply(undefined, arguments))’, ‘dispatch’ is undefined)
When I downgrade back to react-native@0.8.0-rc, it works fine and goes away. I have no idea what changed. Maybe it's a react-native issue?These are my containers... I can provide more if needed. Right now it's pretty basic, mostly just following the examples.
EDIT: now downgrading doesn't work. I reverted my app to the exact same state before and it doesn't work.
dispatch is not a function
. No idea what suddenly changed.The text was updated successfully, but these errors were encountered: