How to use the react-router-redux.routeActions.push function in react-router-redux

To help you get started, we’ve selected a few react-router-redux examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github olalonde / deisdash / containers / Dash / Users / index.js View on Github external
dispatch(deis.getUsers()).then(({ error }) => {
      if (error) {
        this.props.dispatch(routeActions.push('/dash'))
      }
    })
  }
github chenzhenyao / react-material-admin / client / store / modules / user / auth.js View on Github external
return (dispatch, getState) => {
		storage.deleteKey('@auth')
		dispatch({
			type: LOGOUT
		})
		dispatch(routeActions.push('/login'))
	}
}

react-router-redux

Ruthlessly simple bindings to keep react-router and redux in sync

MIT
Latest version published 7 years ago

Package Health Score

58 / 100
Full package analysis