{"action":"created","issue":{"url":"https://api.github.com/repos/ngrx/effects/issues/162","repository_url":"https://api.github.com/repos/ngrx/effects","labels_url":"https://api.github.com/repos/ngrx/effects/issues/162/labels{/name}","comments_url":"https://api.github.com/repos/ngrx/effects/issues/162/comments","events_url":"https://api.github.com/repos/ngrx/effects/issues/162/events","html_url":"https://github.com/ngrx/effects/issues/162","id":239624449,"number":162,"title":"Navigate using `go` and `relativeTo` in effects?","user":{"login":"ShankarSumanth","id":15848680,"avatar_url":"https://avatars0.githubusercontent.com/u/15848680?v=3","gravatar_id":"","url":"https://api.github.com/users/ShankarSumanth","html_url":"https://github.com/ShankarSumanth","followers_url":"https://api.github.com/users/ShankarSumanth/followers","following_url":"https://api.github.com/users/ShankarSumanth/following{/other_user}","gists_url":"https://api.github.com/users/ShankarSumanth/gists{/gist_id}","starred_url":"https://api.github.com/users/ShankarSumanth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ShankarSumanth/subscriptions","organizations_url":"https://api.github.com/users/ShankarSumanth/orgs","repos_url":"https://api.github.com/users/ShankarSumanth/repos","events_url":"https://api.github.com/users/ShankarSumanth/events{/privacy}","received_events_url":"https://api.github.com/users/ShankarSumanth/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-06-29T22:05:11Z","updated_at":"2017-07-02T08:34:24Z","closed_at":"2017-07-02T02:58:34Z","body":"Hi, \r\nI am using [qdouble/angular-webpack2-starter](https://github.com/qdouble/angular-webpack2-starter) project and have made a very minor change to test navigation using the `relativeTo` to `lazy` path using the effects.\r\n\r\n```\r\n   @Effect() logout$ = this.actions$\r\n    .ofType(UserActions.LOGOUT)\r\n    .map(action => action.payload)\r\n    .switchMap(() => this.userService.logout()\r\n      .mergeMap((res: any) => Observable.of(\r\n        go(['lazy'])\r\n      )\r\n      )\r\n      .catch((err) => Observable.of(\r\n        this.userActions.logoutFail(err)\r\n      ))\r\n    );\r\n```\r\nthis works as expected.  but as soon as I add the relativeTo the `go` like ` go(['./lazy'], {}, {relativeTo: payload.activatedRoute})` or to `go(['./lazy'], {}, {relativeTo: this.deepestActivatedRoute})` method as mentioned below, there is error in console.\r\n \r\nhttps://github.com/ngrx/effects/issues/78#issuecomment-273006645\r\nhttps://github.com/ngrx/effects/issues/78#issuecomment-299108842\r\n\r\nhere is the error log \r\n```\r\ncore.es5.js:1290 ERROR Error: Uncaught (in promise): TypeError: Cannot assign to read only property '_futureSnapshot' of object '[object Object]'\r\nTypeError: Cannot assign to read only property '_futureSnapshot' of object '[object Object]'\r\n    at createNode (webpack:///./~/@angular/router/@angular/router.es5.js?:2569:31)\r\n    at createRouterState (webpack:///./~/@angular/router/@angular/router.es5.js?:2556:33)\r\n    at MapSubscriber.eval [as project] (webpack:///./~/@angular/router/@angular/router.es5.js?:4103:50)\r\n    at MapSubscriber._next (webpack:///./~/rxjs/operator/map.js?:77:35)\r\n    at MapSubscriber.Subscriber.next (webpack:///./~/rxjs/Subscriber.js?:89:18)\r\n    at MergeMapSubscriber.notifyNext (webpack:///./~/rxjs/operator/mergeMap.js?:143:30)\r\n    at InnerSubscriber._next (webpack:///./~/rxjs/InnerSubscriber.js?:23:21)\r\n    at InnerSubscriber.Subscriber.next (webpack:///./~/rxjs/Subscriber.js?:89:18)\r\n    at MapSubscriber._next (webpack:///./~/rxjs/operator/map.js?:83:26)\r\n    at MapSubscriber.Subscriber.next (webpack:///./~/rxjs/Subscriber.js?:89:18)\r\n    at createNode (webpack:///./~/@angular/router/@angular/router.es5.js?:2569:31)\r\n    at createRouterState (webpack:///./~/@angular/router/@angular/router.es5.js?:2556:33)\r\n    at MapSubscriber.eval [as project] (webpack:///./~/@angular/router/@angular/router.es5.js?:4103:50)\r\n    at MapSubscriber._next (webpack:///./~/rxjs/operator/map.js?:77:35)\r\n    at MapSubscriber.Subscriber.next (webpack:///./~/rxjs/Subscriber.js?:89:18)\r\n    at MergeMapSubscriber.notifyNext (webpack:///./~/rxjs/operator/mergeMap.js?:143:30)\r\n    at InnerSubscriber._next (webpack:///./~/rxjs/InnerSubscriber.js?:23:21)\r\n    at InnerSubscriber.Subscriber.next (webpack:///./~/rxjs/Subscriber.js?:89:18)\r\n    at MapSubscriber._next (webpack:///./~/rxjs/operator/map.js?:83:26)\r\n    at MapSubscriber.Subscriber.next (webpack:///./~/rxjs/Subscriber.js?:89:18)\r\n    at resolvePromise (webpack:///./~/zone.js/dist/zone.js?:769:31)\r\n    at resolvePromise (webpack:///./~/zone.js/dist/zone.js?:740:17)\r\n    at eval (webpack:///./~/zone.js/dist/zone.js?:817:17)\r\n    at ZoneDelegate.invokeTask (webpack:///./~/zone.js/dist/zone.js?:424:31)\r\n    at Object.onInvokeTask (webpack:///./~/@angular/core/@angular/core.es5.js?:4346:37)\r\n    at ZoneDelegate.invokeTask (webpack:///./~/zone.js/dist/zone.js?:423:36)\r\n    at Zone.runTask (webpack:///./~/zone.js/dist/zone.js?:191:47)\r\n    at drainMicroTaskQueue (webpack:///./~/zone.js/dist/zone.js?:584:35)\r\n    at HTMLButtonElement.ZoneTask.invoke (webpack:///./~/zone.js/dist/zone.js?:490:25)\r\n    at ____________________Elapsed_109_ms__At__Thu_Jun_29_2017_23_56_54_GMT_0200__CEST_ (http://localhost)\r\n    at Object.onScheduleTask (webpack:///./~/zone.js/dist/long-stack-trace-zone.js?:109:22)\r\n    at ZoneDelegate.scheduleTask (webpack:///./~/zone.js/dist/zone.js?:404:51)\r\n    at Object.onScheduleTask (webpack:///./~/zone.js/dist/zone.js?:300:29)\r\n    at ZoneDelegate.scheduleTask (webpack:///./~/zone.js/dist/zone.js?:404:51)\r\n    at Zone.scheduleTask (webpack:///./~/zone.js/dist/zone.js?:235:43)\r\n    at Zone.scheduleMicroTask (webpack:///./~/zone.js/dist/zone.js?:255:25)\r\n    at scheduleResolveOrReject (webpack:///./~/zone.js/dist/zone.js?:815:14)\r\n    at resolvePromise (webpack:///./~/zone.js/dist/zone.js?:764:21)\r\n```\r\nHow is the `go` supposed to work with relativeTo? "},"comment":{"url":"https://api.github.com/repos/ngrx/effects/issues/comments/312478211","html_url":"https://github.com/ngrx/effects/issues/162#issuecomment-312478211","issue_url":"https://api.github.com/repos/ngrx/effects/issues/162","id":312478211,"user":{"login":"ShankarSumanth","id":15848680,"avatar_url":"https://avatars0.githubusercontent.com/u/15848680?v=3","gravatar_id":"","url":"https://api.github.com/users/ShankarSumanth","html_url":"https://github.com/ShankarSumanth","followers_url":"https://api.github.com/users/ShankarSumanth/followers","following_url":"https://api.github.com/users/ShankarSumanth/following{/other_user}","gists_url":"https://api.github.com/users/ShankarSumanth/gists{/gist_id}","starred_url":"https://api.github.com/users/ShankarSumanth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ShankarSumanth/subscriptions","organizations_url":"https://api.github.com/users/ShankarSumanth/orgs","repos_url":"https://api.github.com/users/ShankarSumanth/repos","events_url":"https://api.github.com/users/ShankarSumanth/events{/privacy}","received_events_url":"https://api.github.com/users/ShankarSumanth/received_events","type":"User","site_admin":false},"created_at":"2017-07-02T08:34:24Z","updated_at":"2017-07-02T08:34:24Z","body":"Hi @brandonroberts ,\r\n\r\nI have tried the solution in https://github.com/ngrx/router-store/issues/31#issuecomment-262426014 . And it is the same as https://github.com/ngrx/effects/issues/78#issuecomment-273006645 and https://github.com/ngrx/effects/issues/78#issuecomment-299108842  which I have already mentioned. \r\n\r\nFor some reason the above mentioned comments do not work in this repo. \r\n\r\nPerhaps, I could create a branch for this and you could take a look?  Let me know if that helps\r\n\r\n"}}
{"actor":{"display_login":"ShankarSumanth"}}