{"action":"opened","issue":{"url":"https://api.github.com/repos/japgolly/scalajs-react/issues/68","labels_url":"https://api.github.com/repos/japgolly/scalajs-react/issues/68/labels{/name}","comments_url":"https://api.github.com/repos/japgolly/scalajs-react/issues/68/comments","events_url":"https://api.github.com/repos/japgolly/scalajs-react/issues/68/events","html_url":"https://github.com/japgolly/scalajs-react/issues/68","id":54517338,"number":68,"title":"Router config for async resolved properties","user":{"login":"ramnivas","id":137002,"avatar_url":"https://avatars.githubusercontent.com/u/137002?v=3","gravatar_id":"","url":"https://api.github.com/users/ramnivas","html_url":"https://github.com/ramnivas","followers_url":"https://api.github.com/users/ramnivas/followers","following_url":"https://api.github.com/users/ramnivas/following{/other_user}","gists_url":"https://api.github.com/users/ramnivas/gists{/gist_id}","starred_url":"https://api.github.com/users/ramnivas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ramnivas/subscriptions","organizations_url":"https://api.github.com/users/ramnivas/orgs","repos_url":"https://api.github.com/users/ramnivas/repos","events_url":"https://api.github.com/users/ramnivas/events{/privacy}","received_events_url":"https://api.github.com/users/ramnivas/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-15T22:59:56Z","updated_at":"2015-01-15T22:59:56Z","closed_at":null,"body":"I just started using the new scalajs-react router and I am running into an issue.\r\n\r\nHow do I configure a route to change the view only upon resolving properties needed by that view--if the resolving involves one or more async calls? For example, for the `/person/123` route, I want to first resolve (say by making a REST call that returns a `Furute[Person]`) the `Person` object associated with id `123` and only then render the `PersonComponent` (passing it the resolved `Person` object).\r\n\r\nIn AngularJS, in the same situation, I would use `resolve` [as described here](http://odetocode.com/blogs/scott/archive/2014/05/20/using-resolve-in-angularjs-routes.aspx)"}}