Skip to content

Commit

Permalink
fix(PhantomPlatform): fixed router infinitecycle becauseof popstateevent
Browse files Browse the repository at this point in the history
  • Loading branch information
alisahinozcelik committed May 12, 2021
1 parent d9a5505 commit f3e97af
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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});
}
Expand Down

0 comments on commit f3e97af

Please sign in to comment.