Skip to content

Commit

Permalink
Fix/router transition labels (#1300)
Browse files Browse the repository at this point in the history
* fix(b-router): fixed route update prevention, caused by another transition method
  • Loading branch information
miniven authored Jun 11, 2024
1 parent 937f79d commit e79d8a0
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ Changelog
_Note: Gaps between patch versions are faulty, broken or test releases._

## v4.0.0-beta.102 (2024-06-11)

#### :bug: Bug Fix

* Removed the use of `$a.promise` in the `execute` method of the `Transition` class. This previously caused only
the last `replace` method call to be executed when multiple calls were made `components/base/b-router`

## v4.0.0-beta.101 (2024-05-30)

#### :bug: Bug Fix
Expand Down
7 changes: 7 additions & 0 deletions src/components/base/b-router/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ Changelog
> - :house: [Internal]
> - :nail_care: [Polish]
## v4.0.0-beta.102 (2024-06-11)

#### :bug: Bug Fix

* Removed the use of `$a.promise` in the `execute` method of the `Transition` class. This previously caused only
the last `replace` method call to be executed when multiple calls were made.

## v4.0.0-beta.97 (2024-05-21)

#### :bug: Bug Fix
Expand Down
3 changes: 2 additions & 1 deletion src/components/base/b-router/modules/transition/class.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,8 @@ export default class Transition {
this.initNewRouteInfo();

this.scroll.createSnapshot();
await $a.promise(this.scroll.updateCurrentRouteScroll(), transitionLabel);
// FIXME: removing of $a.promise is a temporaty fix of https://github.com/V4Fire/Client/issues/1301
await this.scroll.updateCurrentRouteScroll();

// We didn't find any route matching the given ref
if (this.newRouteInfo == null) {
Expand Down

0 comments on commit e79d8a0

Please sign in to comment.