Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Apply suggestions from code review
Co-authored-by: chunhtai <[email protected]>
  • Loading branch information
koji-1009 and chunhtai authored Jul 25, 2022
commit feb193d52497c1594e248a789e00094caaf45999
4 changes: 2 additions & 2 deletions packages/go_router/lib/src/delegate.dart
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ class GoRouterDelegate extends RouterDelegate<RouteMatchList>
RouteMatchList _matches = RouteMatchList.empty();
final Map<String, int> _pushCounts = <String, int>{};

/// Push the given location onto the page stack
/// Pushes the given location onto the page stack
void push(RouteMatch match) {
// remap the pageKey so allow any number of the same page on the stack
// Remap the pageKey to allow any number of the same page on the stack
final String fullPath = match.fullpath;
final int count = (_pushCounts[fullPath] ?? 0) + 1;
_pushCounts[fullPath] = count;
Expand Down