Skip to content

Commit a65c58f

Browse files
fix(trace): make TRANSITION trace less noisy when a transition is redirected
1 parent a7b7b77 commit a65c58f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/state/targetState.ts

+5
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import {ParamsOrArray} from "../params/interface";
55
import {TransitionOptions} from "../transition/interface";
66

77
import {State} from "./stateObject";
8+
import {toJson} from "../common/common";
89

910
/**
1011
* @ngdoc object
@@ -75,4 +76,8 @@ export class TargetState {
7576
if (!this._definition.self)
7677
return `State '${this.name()}' has an invalid definition`;
7778
}
79+
80+
toString() {
81+
return `'${this.name()}'${toJson(this.params())}`;
82+
}
7883
}

0 commit comments

Comments
 (0)