{"action":"created","issue":{"url":"https://api.github.com/repos/driftyco/ionic/issues/4351","repository_url":"https://api.github.com/repos/driftyco/ionic","labels_url":"https://api.github.com/repos/driftyco/ionic/issues/4351/labels{/name}","comments_url":"https://api.github.com/repos/driftyco/ionic/issues/4351/comments","events_url":"https://api.github.com/repos/driftyco/ionic/issues/4351/events","html_url":"https://github.com/driftyco/ionic/issues/4351","id":105980976,"number":4351,"title":"bug: $state.reload() doesn't work if view is cached","user":{"login":"jadsalhani","id":6623311,"avatar_url":"https://avatars.githubusercontent.com/u/6623311?v=3","gravatar_id":"","url":"https://api.github.com/users/jadsalhani","html_url":"https://github.com/jadsalhani","followers_url":"https://api.github.com/users/jadsalhani/followers","following_url":"https://api.github.com/users/jadsalhani/following{/other_user}","gists_url":"https://api.github.com/users/jadsalhani/gists{/gist_id}","starred_url":"https://api.github.com/users/jadsalhani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jadsalhani/subscriptions","organizations_url":"https://api.github.com/users/jadsalhani/orgs","repos_url":"https://api.github.com/users/jadsalhani/repos","events_url":"https://api.github.com/users/jadsalhani/events{/privacy}","received_events_url":"https://api.github.com/users/jadsalhani/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/driftyco/ionic/labels/ionitron:closed","name":"ionitron:closed","color":"c7def8"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-09-11T10:03:45Z","updated_at":"2016-05-09T14:59:56Z","closed_at":"2015-12-19T15:44:03Z","body":"**Type**: <span ionic-type>bug</span>\n\n**Platform**: <span ionic-platform>all</span>  \n\n<span ionic-description>Hello Everyone,\r\n\r\nI'm working with a type of Feed component I created, and I cache the view it uses so that the user can return to his previous position in the feed when navigating away by clicking a topic.\r\n\r\nI have two types of feed ( mainly two api calls ) and each one loads a type of data. I created a feed switcher to be able to switch between the types and I am calling $state.reload() after switching so that the view and its directives recompile corresponding to the new api call.\r\n\r\nIssue is, if 'cache: true' is set in the state provider for this view, $state.reload doesnt work. Removing the caching would complicate a lot of things for me (having to keep the position when returning to the feed, not reloading the data on the back event etc)\r\n\r\nIs there a way to work around this or is a fix in mind for this issue?\r\n\r\nAppreciate all the help! :)</span>\n\n<span is-issue-template></span>\n"},"comment":{"url":"https://api.github.com/repos/driftyco/ionic/issues/comments/217889691","html_url":"https://github.com/driftyco/ionic/issues/4351#issuecomment-217889691","issue_url":"https://api.github.com/repos/driftyco/ionic/issues/4351","id":217889691,"user":{"login":"danbucholtz","id":4680488,"avatar_url":"https://avatars.githubusercontent.com/u/4680488?v=3","gravatar_id":"","url":"https://api.github.com/users/danbucholtz","html_url":"https://github.com/danbucholtz","followers_url":"https://api.github.com/users/danbucholtz/followers","following_url":"https://api.github.com/users/danbucholtz/following{/other_user}","gists_url":"https://api.github.com/users/danbucholtz/gists{/gist_id}","starred_url":"https://api.github.com/users/danbucholtz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danbucholtz/subscriptions","organizations_url":"https://api.github.com/users/danbucholtz/orgs","repos_url":"https://api.github.com/users/danbucholtz/repos","events_url":"https://api.github.com/users/danbucholtz/events{/privacy}","received_events_url":"https://api.github.com/users/danbucholtz/received_events","type":"User","site_admin":false},"created_at":"2016-05-09T14:59:56Z","updated_at":"2016-05-09T14:59:56Z","body":"Hi @tarymee,\r\n\r\nAt this time we aren't going to make any additional changes to this sort of navigation issue due to risk.  Nav is pretty stable right now 😄 .  Please try using the lifecycle events - hopefully those work.\r\n\r\nThanks,\r\nDan"}}