fixed an issue where a rehydrate would sometimes leave the app in a broken state

This commit is contained in:
Art Lowel
2017-10-26 12:58:42 +02:00
parent 94272b9b99
commit ee84399d23
7 changed files with 41 additions and 36 deletions

View File

@@ -1,32 +1,32 @@
import {
ChangeDetectionStrategy,
Component,
HostListener,
Inject,
ViewEncapsulation,
OnInit,
HostListener, SimpleChanges, OnChanges
ViewEncapsulation
} from '@angular/core';
import { TranslateService } from '@ngx-translate/core';
import { Store } from '@ngrx/store';
import { TransferState } from '../modules/transfer-state/transfer-state';
import { HostWindowState } from './shared/host-window.reducer';
import { HostWindowResizeAction } from './shared/host-window.actions';
import { NativeWindowRef, NativeWindowService } from './shared/window.service';
import { MetadataService } from './core/metadata/metadata.service';
import { TranslateService } from '@ngx-translate/core';
import { GLOBAL_CONFIG, GlobalConfig } from '../config';
import { TransferState } from '../modules/transfer-state/transfer-state';
import { MetadataService } from './core/metadata/metadata.service';
import { HostWindowResizeAction } from './shared/host-window.actions';
import { HostWindowState } from './shared/host-window.reducer';
import { NativeWindowRef, NativeWindowService } from './shared/window.service';
@Component({
selector: 'ds-app',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss'],
changeDetection: ChangeDetectionStrategy.Default,
changeDetection: ChangeDetectionStrategy.OnPush,
encapsulation: ViewEncapsulation.None
})
export class AppComponent implements OnInit, OnChanges {
export class AppComponent implements OnInit {
constructor(
@Inject(GLOBAL_CONFIG) public config: GlobalConfig,
@@ -71,9 +71,4 @@ export class AppComponent implements OnInit, OnChanges {
);
}
ngOnChanges(changes: SimpleChanges): void {
console.log('AppComponent: onchanges called', changes);
}
}