Skip to content

Commit

Permalink
Merge pull request #321 from sly7-7/introduce-intermediate-flag-in-tr…
Browse files Browse the repository at this point in the history
…ansition

introduce isIntermediate flag in transition
  • Loading branch information
rwjblue authored Mar 7, 2021
2 parents 10d0760 + 89323db commit fe716d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/router/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ export default abstract class Router<T extends Route> {

if (isIntermediate) {
let transition = new InternalTransition(this, undefined, newState);
transition.isIntermediate = true;
this.toReadOnlyInfos(transition, newState);
this.setupContexts(newState, transition);

Expand Down
1 change: 1 addition & 0 deletions lib/router/transition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ export default class Transition<T extends Route> implements Partial<Promise<T>>
isCausedByInitialTransition = false;
isCausedByAbortingReplaceTransition = false;
_visibleQueryParams: Dict<unknown> = {};
isIntermediate = false;

/**
In non-production builds, this function will return the stack that this Transition was
Expand Down

0 comments on commit fe716d5

Please sign in to comment.