We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I get this error from my route reducer which is a copy of the provided redux example:
import { ActionConst } from 'react-native-router-flux'; const initialState = { scene: { sceneKey: null } }; export default function route(state = initialState, action) { switch (action.type) { // focus action is dispatched when a new screen comes into focus case ActionConst.FOCUS: return { ...state, scene: action.scene }; // ...other actions default: return state; } }
If I remove the case ActionConst.FOCUS the error goes away, but I lose the ability to know which scene is current.
This is my router setup:
const RouterWithRedux = connect()(Router); class MyApp extends React.Component { ... render() { return ( <Provider store={store}> <AppDrawersContainer> <RouterWithRedux hideNavBar={true}> <Scene key="root" renderTitle={() => { return <AppLogo /> }}> <Scene key="launch" component={LaunchPage} title="Launch" initial={true}/> <Scene key="venues" component={VenuePage} title="Venues"/> <Scene key="home" component={HomePage} title="Home" /> </Scene> </RouterWithRedux> </AppDrawersContainer> </Provider> ); } }
I'm don't have the createReducer prop on my router, cause I assume that's what this is taking care of:
const RouterWithRedux = connect()(Router);
If I remove redux-freeze the problem goes away...I assume something is mutating state when it shouldn't be.
This code from Actions.js seems to be what's causing the error:
focus(props = {}) { return this.callback({ ...filterParam(props), type: ActionConst.FOCUS }); }
Any help would be REALLY appreciated.
Versions "react-native": "0.34.0-rc.0", "react-native-router-flux": "3.34.0" (I downgraded because of another problem I was having)
The text was updated successfully, but these errors were encountered:
Move to react-native-router-flux: aksonov/react-native-router-flux#1210
Sorry, something went wrong.
No branches or pull requests
I get this error from my route reducer which is a copy of the provided redux example:
If I remove the case ActionConst.FOCUS the error goes away, but I lose the ability to know which scene is current.
This is my router setup:
I'm don't have the createReducer prop on my router, cause I assume that's what this is taking care of:
const RouterWithRedux = connect()(Router);
If I remove redux-freeze the problem goes away...I assume something is mutating state when it shouldn't be.
This code from Actions.js seems to be what's causing the error:
Any help would be REALLY appreciated.
Versions
"react-native": "0.34.0-rc.0",
"react-native-router-flux": "3.34.0" (I downgraded because of another problem I was having)
The text was updated successfully, but these errors were encountered: