Skip to content

[go_router] add current state getter - #7651

Merged
auto-submit[bot] merged 9 commits into
flutter:mainfrom
cedvdb:go_router_current_state
Nov 4, 2024
Merged

[go_router] add current state getter#7651
auto-submit[bot] merged 9 commits into
flutter:mainfrom
cedvdb:go_router_current_state

Conversation

@cedvdb

@cedvdbcedvdb commented Sep 15, 2024

Copy link
Copy Markdown
Contributor

Adds a current state getter that returns GoRouterState.

I've no idea if this is correct but the added tests seem to be passing. Rebuilding the state may be expensive too ?

Fix: flutter/flutter#129833
fixesflutter/flutter#148215

Pre-launch Checklist

If you need help, consider asking for advice on the #hackers-new channel on Discord.

@cedvdbcedvdb changed the title [go_router] add current state getter[draft][go_router] add current state getterSep 15, 2024
@cedvdbcedvdb changed the title [draft][go_router] add current state getter[go_router] add current state getterSep 15, 2024
Comment threadpackages/go_router/lib/src/delegate.dart

@chunhtaichunhtai left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can also solve flutter/flutter#129833

Edit: nvm you already linked the issue

Comment threadpackages/go_router/lib/src/delegate.dart
Comment threadpackages/go_router/test/go_router_test.dart
Comment threadpackages/go_router/lib/src/delegate.dart
@cedvdb

Copy link
Copy Markdown
ContributorAuthor

@Hangyujin requesting the additional necessary review

@chunhtai
chunhtai self-requested a review October 3, 2024 21:36

@chunhtaichunhtai left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just some suggestion to the doc

Comment threadpackages/go_router/lib/src/delegate.dart

@hannah-hyjhannah-hyj left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@chunhtaichunhtai added the autosubmit Merge PR when tree becomes green via auto submit App label Oct 31, 2024
@auto-submit

Copy link
Copy Markdown
Contributor

auto label is removed for flutter/packages/7651, due to - The status or check suite Linux_android android_platform_tests_shard_1 master has failed. Please fix the issues identified (or deflake) before re-applying this label.

@auto-submitauto-submitBot removed the autosubmit Merge PR when tree becomes green via auto submit App label Oct 31, 2024
@chunhtaichunhtai added the autosubmit Merge PR when tree becomes green via auto submit App label Nov 4, 2024
@auto-submit
auto-submitBot merged commit da4c3ee into flutter:mainNov 4, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Nov 5, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Nov 5, 2024
auto-submitBot pushed a commit to flutter/flutter that referenced this pull request Nov 5, 2024
flutter/packages@796afa3...7219431
2024-11-05 jonahwilliams@google.com [vector_graphics*] Relax dependency constraints of vector_graphics, vector_graphics_codec, vector_graphics_compiler, flutter_svg (flutter/packages#8018)
2024-11-04 kallentu@google.com [various] Add `missing_code_block_language_in_doc_comment` lint to flutter/packages. (flutter/packages#6473)
2024-11-04 stuartmorgan@google.com [various] Update example apps to Kotlin 1.9.0 (flutter/packages#7998)
2024-11-04 cedvandenbosch@gmail.com [go_router] add current state getter (flutter/packages#7651)
2024-11-04 jessiewong401@gmail.com Applied Gradle Plugins Declaratively for Multiple Plugin Example Apps (flutter/packages#7968)
2024-11-04 engine-flutter-autoroll@skia.org Roll Flutter from f86b777 to 8591d0c (16 revisions) (flutter/packages#8015)
2024-11-04 stuartmorgan@google.com [camera_windows] Revert: Support image streams on Windows platform (flutter/packages#7951)
2024-11-02 stuartmorgan@google.com [camera] Use Pigeon for Windows C++->Dart (flutter/packages#8001)
2024-11-02 kevmoo@users.noreply.github.com [script/tool] update dependencies (flutter/packages#7992)
2024-11-01 engine-flutter-autoroll@skia.org Roll Flutter from 0fe6153 to f86b777 (16 revisions) (flutter/packages#8000)
2024-11-01 kevmoo@users.noreply.github.com [path_parsing] deprecate utility functions that should be private (flutter/packages#7993)
If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages-flutter-autoroll
Please CC flutter-ecosystem@google.com on the revert to ensure that a human
is aware of the problem.
To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose
To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622
Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
sinyu1012 added a commit to sinyu1012/packages that referenced this pull request Nov 8, 2024
* main: (1187 commits)
[various] Update example app minSdkVersions (flutter#8035)
[go_router] Activate leak testing (flutter#7546)
[in_app_purchase_storekit] Add restore purchases and receipts (flutter#7964)
[interactive_media_ads] Adds remaining methods for internal wrapper of the Android native `BaseManager` (flutter#7943)
[google_sign_in/google_identity_services] Clear-up documentation of callbacks in various APIs and uses of those APIs (flutter#8029)
[flutter_svg] wasm compatibility (flutter#8014)
Applied Gradle Plugins Declaratively for Multiple Plugin Example Apps (Part 2) (flutter#8019)
Roll Flutter from 29d40f7 to 73546b3 (20 revisions) (flutter#8028)
[ci] Upload screenshots, logs, and Xcode test results for drive and integration_test runs (flutter#7430)
Remove use_modular_headers! from Podfiles (flutter#7796)
[camera_avfoundation] enable more than 30 fps (flutter#7394)
Roll Flutter from 8591d0c to 29d40f7 (25 revisions) (flutter#8027)
[ci] Add vector_graphics and flutter_svg to autolabeler (flutter#8025)
[vector_graphics_compiler] wasm compatibility (flutter#8021)
[vector_graphics*] Relax dependency constraints of vector_graphics, vector_graphics_codec, vector_graphics_compiler, flutter_svg (flutter#8018)
[various] Add `missing_code_block_language_in_doc_comment` lint to flutter/packages. (flutter#6473)
[various] Update example apps to Kotlin 1.9.0 (flutter#7998)
[go_router] add current state getter (flutter#7651)
Applied Gradle Plugins Declaratively for Multiple Plugin Example Apps (flutter#7968)
Roll Flutter from f86b777 to 8591d0c (16 revisions) (flutter#8015)
...
# Conflicts:
#	packages/quick_actions/quick_actions/CHANGELOG.md
#	packages/quick_actions/quick_actions_ios/CHANGELOG.md
#	packages/quick_actions/quick_actions_platform_interface/CHANGELOG.md
creatorpiyush pushed a commit to creatorpiyush/packages that referenced this pull request Jun 10, 2026
Adds a current state getter that returns `GoRouterState`.
I've no idea if this is correct but the added tests seem to be passing. Rebuilding the state may be expensive too ?
Fix: flutter/flutter#129833fixesflutter/flutter#148215
bisor0627 pushed a commit to bisor0627/packages that referenced this pull request Jun 19, 2026
Adds a current state getter that returns `GoRouterState`.
I've no idea if this is correct but the added tests seem to be passing. Rebuilding the state may be expensive too ?
Fix: flutter/flutter#129833fixesflutter/flutter#148215
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autosubmitMerge PR when tree becomes green via auto submit Appp: go_router

Projects

None yet

3 participants

@cedvdb@chunhtai@hannah-hyj