With react-router and a flux implementation like Alt/Reflux how do you handle routing?
I am using Alt and react-router
. Whenever I need to trigger a route change I do the following :
showBlogPost : function(e){
e.preventDefault();
PostActions.loadPost(id,function(){
this.context.router.transitionTo(url);
});
}
But this becomes too difficult to manage. Is this the right approach? Or do you recommend listening to a global route change event and load data into stores at that time?