Skip to content

Commit

Permalink
Need to break from the while loop when entry found
Browse files Browse the repository at this point in the history
  • Loading branch information
Goddchen committed Apr 4, 2022
1 parent 0c653f8 commit 6043618
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package/lib/src/beamer_delegate.dart
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class BeamerDelegate extends RouterDelegate<RouteInformation>
/// `*App.router` and at least one more [Beamer] in the Widget tree.
BeamerDelegate? get parent => _parent;
set parent(BeamerDelegate? parent) {
if(parent == null && _parent != null) {
if (parent == null && _parent != null) {
_parent!.removeListener(_updateFromParent);
_parent!._children.remove(this);
_parent = null;
Expand Down Expand Up @@ -609,6 +609,7 @@ class BeamerDelegate extends RouterDelegate<RouteInformation>
} else {
beamingHistory.last.history
.removeRange(index, beamingHistory.last.history.length);
break;
}
}
beamToNamed(
Expand Down

0 comments on commit 6043618

Please sign in to comment.