-
-
Notifications
You must be signed in to change notification settings - Fork 10.2k
New issue
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
Redirections don't trigger rendering #360
Comments
I'm experiencing the same issue |
What happens if your |
I'm experiencing this too, with the equivalent of the |
@mjackson |
FYI, same result when I try and use the |
@baskerville Can you please try this on 0.9.2? We shipped a fix yesterday that should address this problem. |
The issue still holds with 0.9.2. |
I am also experiencing this but only when /** @jsx React.DOM */
var React = require('react');
var {Navigation} = require('react-router');
var toolkitApi = require('../toolkit/api');
var authUtils = require('../utils/auth');
module.exports = React.createClass({
displayName: 'AuthenticatedContainer',
mixins: [Navigation],
statics: {
willTransitionTo: function(transition, params) {
if (!authUtils.isAuthenticated()) {
return transition.redirect('login', params, {
redirect: transition.path
});
}
}
},
onLogout: function() {
this.transitionTo('/', this.props.params);
},
componentWillMount: function() {
toolkitApi.on('logout', this.onLogout);
},
componentWillUnmount: function() {
toolkitApi.off('logout', this.onLogout);
},
render: function() {
return this.props.activeRouteHandler();
}
}); |
I can confirm that the issue isn't happening when |
The only time the redirect doesn't render is when the page is initially loaded at the route that redirects. If you navigate to it in an already loaded app it works as expected. |
@gaearon ^^^ |
Is this unrelated to #336? |
I may be misreading the issue but at a glance it looks exactly like #336 which was introduced a bit earlier than my PR, in However, you said it was fixed in 0.8.0. Could something from 0.9.x break it again? |
Appreciate the contributors to this project! Experiencing exact same issue mentioned here on v0.9.3. What was the resolution? |
I just added the fix to node_modules temporarily until this is updated in npm. Thanks guys! |
there will be a new release on monday, if not sooner. |
Please consider the following example:
After visiting
/gohome
I would expectHome
to be rendered, but it isn't.The text was updated successfully, but these errors were encountered: