{"action":"created","issue":{"url":"https://api.github.com/repos/angular-ui/ui-router/issues/1612","labels_url":"https://api.github.com/repos/angular-ui/ui-router/issues/1612/labels{/name}","comments_url":"https://api.github.com/repos/angular-ui/ui-router/issues/1612/comments","events_url":"https://api.github.com/repos/angular-ui/ui-router/issues/1612/events","html_url":"https://github.com/angular-ui/ui-router/issues/1612","id":51162619,"number":1612,"title":"reload option in transitionTo reloads all states in a hierarchy. Unable to reload just the current nested state.","user":{"login":"gfreeau","id":1403669,"avatar_url":"https://avatars.githubusercontent.com/u/1403669?v=3","gravatar_id":"","url":"https://api.github.com/users/gfreeau","html_url":"https://github.com/gfreeau","followers_url":"https://api.github.com/users/gfreeau/followers","following_url":"https://api.github.com/users/gfreeau/following{/other_user}","gists_url":"https://api.github.com/users/gfreeau/gists{/gist_id}","starred_url":"https://api.github.com/users/gfreeau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gfreeau/subscriptions","organizations_url":"https://api.github.com/users/gfreeau/orgs","repos_url":"https://api.github.com/users/gfreeau/repos","events_url":"https://api.github.com/users/gfreeau/events{/privacy}","received_events_url":"https://api.github.com/users/gfreeau/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/angular-ui/ui-router/labels/feature","name":"feature","color":"009800"}],"state":"closed","locked":false,"assignee":{"login":"christopherthielen","id":2053478,"avatar_url":"https://avatars.githubusercontent.com/u/2053478?v=3","gravatar_id":"","url":"https://api.github.com/users/christopherthielen","html_url":"https://github.com/christopherthielen","followers_url":"https://api.github.com/users/christopherthielen/followers","following_url":"https://api.github.com/users/christopherthielen/following{/other_user}","gists_url":"https://api.github.com/users/christopherthielen/gists{/gist_id}","starred_url":"https://api.github.com/users/christopherthielen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christopherthielen/subscriptions","organizations_url":"https://api.github.com/users/christopherthielen/orgs","repos_url":"https://api.github.com/users/christopherthielen/repos","events_url":"https://api.github.com/users/christopherthielen/events{/privacy}","received_events_url":"https://api.github.com/users/christopherthielen/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/angular-ui/ui-router/milestones/10","html_url":"https://github.com/angular-ui/ui-router/milestones/0.2.14","labels_url":"https://api.github.com/repos/angular-ui/ui-router/milestones/10/labels","id":882168,"number":10,"title":"0.2.14","description":"Bugfixes only\r\n- Revert do-not-resync code (see issue #1584) from 0.2.13 (it will be re-introduced no later than version 1.0)\r\n","creator":{"login":"christopherthielen","id":2053478,"avatar_url":"https://avatars.githubusercontent.com/u/2053478?v=3","gravatar_id":"","url":"https://api.github.com/users/christopherthielen","html_url":"https://github.com/christopherthielen","followers_url":"https://api.github.com/users/christopherthielen/followers","following_url":"https://api.github.com/users/christopherthielen/following{/other_user}","gists_url":"https://api.github.com/users/christopherthielen/gists{/gist_id}","starred_url":"https://api.github.com/users/christopherthielen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christopherthielen/subscriptions","organizations_url":"https://api.github.com/users/christopherthielen/orgs","repos_url":"https://api.github.com/users/christopherthielen/repos","events_url":"https://api.github.com/users/christopherthielen/events{/privacy}","received_events_url":"https://api.github.com/users/christopherthielen/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":9,"state":"open","created_at":"2014-11-27T03:18:19Z","updated_at":"2015-03-30T19:51:04Z","due_on":null,"closed_at":null},"comments":12,"created_at":"2014-12-06T00:29:16Z","updated_at":"2015-03-30T19:51:04Z","closed_at":"2015-03-30T19:51:04Z","body":"When using the `reload` option in `state.transitionTo` on a nested state, all of its parents are also reloaded. You should be able to reload only the current state.\r\n\r\nMy use case is a nested state with params. In some cases I have the same state and params and I simply wish to reload it (to refresh data from the server), however using the `reload` option also reloads it's parents, which resets templates and directives in parent states.\r\n\r\nOne workaround I found is to have some kind of random param in the nested state which is changed every time you wish to reload/refresh the current state. UI-Router seems to handle the case fine when a state has unique params every time, it just cannot reload a state with the exact same params since it believes there is no work to do.\r\n\r\nHere is what happens:\r\n\r\n* Nested state, no changes to params =  UI router does nothing, since it assumes it is already on the correct state\r\n* Nested state, with an additional unique param assigned to a random value to uniquely identify every transitionTo call = works correctly, able to \"refresh\" nested states without reloading parents\r\n* using the `reload` option, refreshes the nested state correctly but also reloads all parents\r\n\r\nI can setup a plunk, I just wanted to see if this is worthwhile first."},"comment":{"url":"https://api.github.com/repos/angular-ui/ui-router/issues/comments/87805832","html_url":"https://github.com/angular-ui/ui-router/issues/1612#issuecomment-87805832","issue_url":"https://api.github.com/repos/angular-ui/ui-router/issues/1612","id":87805832,"user":{"login":"nateabele","id":18288,"avatar_url":"https://avatars.githubusercontent.com/u/18288?v=3","gravatar_id":"","url":"https://api.github.com/users/nateabele","html_url":"https://github.com/nateabele","followers_url":"https://api.github.com/users/nateabele/followers","following_url":"https://api.github.com/users/nateabele/following{/other_user}","gists_url":"https://api.github.com/users/nateabele/gists{/gist_id}","starred_url":"https://api.github.com/users/nateabele/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nateabele/subscriptions","organizations_url":"https://api.github.com/users/nateabele/orgs","repos_url":"https://api.github.com/users/nateabele/repos","events_url":"https://api.github.com/users/nateabele/events{/privacy}","received_events_url":"https://api.github.com/users/nateabele/received_events","type":"User","site_admin":false},"created_at":"2015-03-30T19:51:04Z","updated_at":"2015-03-30T19:51:04Z","body":"Fixed in #1809."}}