From f3e97af95e675851d6929d9a414ca0cb15586d53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ali=20=C5=9Eahin=20=C3=96z=C3=A7elik?= Date: Wed, 12 May 2021 15:34:10 +0300 Subject: [PATCH] fix(PhantomPlatform): fixed router infinitecycle becauseof popstateevent --- projects/ng-utils/phantom-platform/phantom-platform-location.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/projects/ng-utils/phantom-platform/phantom-platform-location.ts b/projects/ng-utils/phantom-platform/phantom-platform-location.ts index 0171be2..4a9f288 100644 --- a/projects/ng-utils/phantom-platform/phantom-platform-location.ts +++ b/projects/ng-utils/phantom-platform/phantom-platform-location.ts @@ -175,8 +175,6 @@ export class PhantomPlatformLocation extends PlatformLocation { this._states = replace(this._states, this._currentState, stateObject); this._states.length = this._currentIndex + 1; - this._popStateListener({state: stateObject.state, type: POPSTATE_EVENT_TYPE}); - if (previousHash !== this.hash) { this._hashChangeListener({state: stateObject.state, type: HASHCHANGE_EVENT_TYPE}); }