{"action":"created","issue":{"url":"https://api.github.com/repos/mautilus/sdk/issues/22","repository_url":"https://api.github.com/repos/mautilus/sdk","labels_url":"https://api.github.com/repos/mautilus/sdk/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/mautilus/sdk/issues/22/comments","events_url":"https://api.github.com/repos/mautilus/sdk/issues/22/events","html_url":"https://github.com/mautilus/sdk/issues/22","id":148056041,"number":22,"title":"any method will be invoked when Router.goBack() ?","user":{"login":"kingctan","id":2522948,"avatar_url":"https://avatars.githubusercontent.com/u/2522948?v=3","gravatar_id":"","url":"https://api.github.com/users/kingctan","html_url":"https://github.com/kingctan","followers_url":"https://api.github.com/users/kingctan/followers","following_url":"https://api.github.com/users/kingctan/following{/other_user}","gists_url":"https://api.github.com/users/kingctan/gists{/gist_id}","starred_url":"https://api.github.com/users/kingctan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kingctan/subscriptions","organizations_url":"https://api.github.com/users/kingctan/orgs","repos_url":"https://api.github.com/users/kingctan/repos","events_url":"https://api.github.com/users/kingctan/events{/privacy}","received_events_url":"https://api.github.com/users/kingctan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-04-13T13:08:50Z","updated_at":"2016-04-14T16:03:54Z","closed_at":null,"body":"any method will be invoked when Router.goBack?\r\nfor example,\r\n1.scene A ----> scene B. then\r\n2.scene B ----->goback----->scene A, \r\nhow about b's method and a's method will both be invoked in 2.\r\nand how to pass parameters to goback method?\r\nThanks."},"comment":{"url":"https://api.github.com/repos/mautilus/sdk/issues/comments/210019906","html_url":"https://github.com/mautilus/sdk/issues/22#issuecomment-210019906","issue_url":"https://api.github.com/repos/mautilus/sdk/issues/22","id":210019906,"user":{"login":"SoCoxx","id":29293,"avatar_url":"https://avatars.githubusercontent.com/u/29293?v=3","gravatar_id":"","url":"https://api.github.com/users/SoCoxx","html_url":"https://github.com/SoCoxx","followers_url":"https://api.github.com/users/SoCoxx/followers","following_url":"https://api.github.com/users/SoCoxx/following{/other_user}","gists_url":"https://api.github.com/users/SoCoxx/gists{/gist_id}","starred_url":"https://api.github.com/users/SoCoxx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SoCoxx/subscriptions","organizations_url":"https://api.github.com/users/SoCoxx/orgs","repos_url":"https://api.github.com/users/SoCoxx/repos","events_url":"https://api.github.com/users/SoCoxx/events{/privacy}","received_events_url":"https://api.github.com/users/SoCoxx/received_events","type":"User","site_admin":false},"created_at":"2016-04-14T16:03:54Z","updated_at":"2016-04-14T16:03:54Z","body":"In other words, if you `Router.goBack()`, the scene on you are going back is called with same parameters in `activate(args)` as it was called first time with `Router.go('scene',args)`.\r\n\r\nAnytime you need to go back with other arguments to the scene, it has nothing to do with history. You should use already mentioned \"hack\":\r\n```\r\nRouter.history.splice(-2,2);\r\nRouter.go('sceneName',newArgs);\r\n```\r\n\r\nConsider if it's really what you need to do ... as I can't imagine situation for this :)"}}