{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular/issues/6786","repository_url":"https://api.github.com/repos/angular/angular","labels_url":"https://api.github.com/repos/angular/angular/issues/6786/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular/issues/6786/comments","events_url":"https://api.github.com/repos/angular/angular/issues/6786/events","html_url":"https://github.com/angular/angular/issues/6786","id":130017300,"number":6786,"title":"EXCEPTION: Attempt to use a dehydrated detector.","user":{"login":"karmux","id":2575235,"avatar_url":"https://avatars.githubusercontent.com/u/2575235?v=3","gravatar_id":"","url":"https://api.github.com/users/karmux","html_url":"https://github.com/karmux","followers_url":"https://api.github.com/users/karmux/followers","following_url":"https://api.github.com/users/karmux/following{/other_user}","gists_url":"https://api.github.com/users/karmux/gists{/gist_id}","starred_url":"https://api.github.com/users/karmux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karmux/subscriptions","organizations_url":"https://api.github.com/users/karmux/orgs","repos_url":"https://api.github.com/users/karmux/repos","events_url":"https://api.github.com/users/karmux/events{/privacy}","received_events_url":"https://api.github.com/users/karmux/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":19,"created_at":"2016-01-30T17:44:53Z","updated_at":"2016-02-17T22:07:27Z","closed_at":null,"body":"```\r\nthis.router.navigate(['/Search']);\r\n```\r\ngives exception \"Attempt to use a dehydrated detector\" since Angular 2 beta 2. Despite the error my app navigates correctly.\r\n\r\nNo exception is thrown in beta 1 or beta 0.\r\n\r\nComplete stacktrace:\r\n```\r\nError: Attempt to use a dehydrated detector.\r\n    at DehydratedException.BaseException [as constructor] (https://mysite.com.localhost/app.js:23:18903)\r\n    at new DehydratedException (https://mysite.com.localhost/app.js:15:14756)\r\n    at AbstractChangeDetector.throwDehydratedError (https://mysite.com.localhost/app.js:12:14458)\r\n    at AbstractChangeDetector.handleEvent (https://mysite.com.localhost/app.js:12:6180)\r\n    at AbstractChangeDetector.eval (viewFactory_HomeComponent:315:107)\r\n    at https://mysite.com.localhost/app.js:23:6253\r\n    at cb (https://mysite.com.localhost/app.js:23:2204)\r\n    at arguments.(anonymous function) (https://code.angularjs.org/2.0.0-beta.2/angular2-polyfills.js:493:24)\r\n    at https://code.angularjs.org/2.0.0-beta.2/angular2-polyfills.js:118:23\r\n    at Zone.run (https://code.angularjs.org/2.0.0-beta.2/angular2-polyfills.js:138:17)\r\n\r\n-----async gap-----\r\nError\r\n    at _getStacktraceWithUncaughtError (https://code.angularjs.org/2.0.0-beta.2/angular2-polyfills.js:2195:26)\r\n    at Zone.fork (https://code.angularjs.org/2.0.0-beta.2/angular2-polyfills.js:2253:40)\r\n    at Zone.bind (https://code.angularjs.org/2.0.0-beta.2/angular2-polyfills.js:109:48)\r\n    at Zone.bindOnce (https://code.angularjs.org/2.0.0-beta.2/angular2-polyfills.js:117:17)\r\n    at bindArgumentsOnce (https://code.angularjs.org/2.0.0-beta.2/angular2-polyfills.js:989:29)\r\n    at global.zone.(anonymous function) (https://code.angularjs.org/2.0.0-beta.2/angular2-polyfills.js:495:20)\r\n    at https://mysite.com.localhost/app.js:23:2273\r\n    at obj.(anonymous function) (https://code.angularjs.org/2.0.0-beta.2/angular2-polyfills.js:502:37)\r\n    at Subscriber.<anonymous> (https://mysite.com.localhost/app.js:23:6208)\r\n    at Subscriber.tryCatcher [as _next] (https://mysite.com.localhost/app.js:29:9030)\r\n\r\n-----async gap-----\r\nError\r\n    at _getStacktraceWithUncaughtError (https://code.angularjs.org/2.0.0-beta.2/angular2-polyfills.js:2195:26)\r\n    at Zone.fork (https://code.angularjs.org/2.0.0-beta.2/angular2-polyfills.js:2253:40)\r\n    at NgZone._createInnerZone (https://mysite.com.localhost/app.js:23:950)\r\n    at new NgZone (https://mysite.com.localhost/app.js:22:29783)\r\n    at createNgZone (https://mysite.com.localhost/app.js:11:24921)\r\n    at PlatformRef_.application (https://mysite.com.localhost/app.js:11:26769)\r\n    at bootstrap (https://mysite.com.localhost/app.js:1:13748)\r\n    at Object.3../app.component (https://mysite.com.localhost/app.js:1:3520)\r\n    at s (https://mysite.com.localhost/app.js:1:254)\r\n    at e (https://mysite.com.localhost/app.js:1:425)\r\n```"},"comment":{"url":"https://api.github.com/repos/angular/angular/issues/comments/185429140","html_url":"https://github.com/angular/angular/issues/6786#issuecomment-185429140","issue_url":"https://api.github.com/repos/angular/angular/issues/6786","id":185429140,"user":{"login":"laclac777","id":16359817,"avatar_url":"https://avatars.githubusercontent.com/u/16359817?v=3","gravatar_id":"","url":"https://api.github.com/users/laclac777","html_url":"https://github.com/laclac777","followers_url":"https://api.github.com/users/laclac777/followers","following_url":"https://api.github.com/users/laclac777/following{/other_user}","gists_url":"https://api.github.com/users/laclac777/gists{/gist_id}","starred_url":"https://api.github.com/users/laclac777/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laclac777/subscriptions","organizations_url":"https://api.github.com/users/laclac777/orgs","repos_url":"https://api.github.com/users/laclac777/repos","events_url":"https://api.github.com/users/laclac777/events{/privacy}","received_events_url":"https://api.github.com/users/laclac777/received_events","type":"User","site_admin":false},"created_at":"2016-02-17T22:07:27Z","updated_at":"2016-02-17T22:07:27Z","body":"Same issue after dispose but the app goes well. Not too nice but this solved:\r\n\r\n   setTimeout(() => {disposeInstance.dispose();}, 100);"}}