Since I'm using react-router to handle my routes in a react app, I'm curious if there is a way to redirect to an external resource.  Say someone hits:  example.com/privacy-policy  I would like it to redirect to:  example.zendesk.com/hc/en-u...
I have an issue when navigating into another page, its position will remain like the page before. So it wont scroll to top automatically. I've also tried to use window.scrollTo(0, 0) on onChange router. I've also used scrollBehavior to fix th...
I have an app using react @0.14, redux @3.05, react-router @1.0.3, and redux-simple-router @2.0.2. I'm trying to configure onEnter transitions for some of my routes based on store state. The transition hooks successfully fire and push new state t...
Currently I pre-load data from api in container component's lifecycle method componentWillMount:  componentWillMount() {   const { dept, course } = this.props.routeParams;   this.props.fetchTimetable(dept, course); }   It is called when user navi...
I'm using Redux with redux-simple-router.  Here's what I'm trying to do. A user hits a URL like so: http://localhost:3000/#/profile/kSzHKGX Where kSzHKGX is the ID of the profile. This should route to Profile container filled out with the...
I've been battling this one for a while!  I want to have the 'main app container' which always has the logo, navigation... I want to use react-bootstrap to pretty it up.  At the moment I'm running into problems, my project is based of...
I am trying to use a custom dialog to ask a user for confirmation before navigating away with unsaved data.  Following the docs I have:    componentDidMount() {       this.props.router.setRouteLeaveHook(         this.props.route,         this.routerW...
I am trying to redirect to the page after signing out. However, every time when I sign out, it directs the page successfully. However, I still got the error     Cannot read property 'type' of undefined   Further research by "Pause on Caug...
I am unable to use redux-devtools-extension with react-router-redux's syncHistoryWithStore. The error i get is Uncaught TypeError: store.getState is not a function.  syncHistoryWithStore   @   sync.js:38   (anonymous function)  @   store.js:30  m...
I am quite new to React.js but I'm building a single page application using it. For routing I am using react-router.  The way I want to organize my page is as following: I want to have an static header and footer(loaded only ONCE), and then the c...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.