I am having this error EXCEPTION: Attempt to detect changes on a dehydrated detector. and after reading a few online pages. I have not very clear how to fix it or because it is.
The error begins in my case when I put some components while using @RouteConfig RouterLink
and one of my components use this constructor
constructor(http: Http, private ref: ChangeDetectorRef) {
..//
setInterval(() => {
this.ref.detectChanges();
}, 5000);
if I comment and change the constructor something like this error disappears
constructor(http: Http) {
..//
/*
setInterval(() => {
this.ref.detectChanges();
}, 5000);
*/
someone to be this, or any alternative to solve it using ChangeDetectorRef