kadirahq / flow-router

Carefully Designed Client Side Router for Meteor
MIT License
1.09k stars 194 forks source link

FlowRouter.go() Only Changes URL #501

Closed SylarRuby closed 8 years ago

SylarRuby commented 8 years ago

I am using FlowRouter.go('/'); inside of a react component:

componentWillMount() { 
 FlowRouter.go('/'); 
}

Only the url changes but not the html body. How to properly do this?

arunoda commented 8 years ago

This is a bug in the current flow router. Do it inside a setTimeout(). This is fixed in the kadira:flow-router-ssrversion.

SylarRuby commented 8 years ago

Thanks mate!