Uh oh!
There was an error while loading. Please reload this page.
[go_router] ShellRoute will merge GoRouter's observers - #9436
Conversation
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
…observers through context
justinmc
commented
Jul 22, 2025
@huanghui1998hhh FYI you have some conflicts on this PR. |
justinmc
commented
Aug 19, 2025
@huanghui1998hhh Some merge conflicts and a failure still on here FYI. |
alexobviously
commented
Aug 26, 2025
Just wondering what the status of this is? We have some issues caused by the bug this PR fixes. Happy to help if there's anything I could do to help this get merged. |
Piinks
commented
Sep 26, 2025
Since this is a draft we have not been actively reviewing it, @huanghui1998hhh when you are ready for another review, you can mark the PR 'ready for review'. :) |
huanghui1998hhh
commented
Sep 30, 2025
Need more advice on the implementation details. Especially in this case. This feature is highly requested. We need to properly track page navigation within ShellRoute. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
2. rename `mergeObservers` to `notifyRootObserver` 3. set `notifyRootObserver`'s default value to `true`
chunhtai
commented
Oct 21, 2025
Can you add a breaking change doc for this?
|
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
…12584) GoRouter v17 BC document. About flutter/packages#9436
Co-authored-by: chunhtai <47866232+chunhtai@users.noreply.github.com>
Co-authored-by: chunhtai <47866232+chunhtai@users.noreply.github.com>
Co-authored-by: chunhtai <47866232+chunhtai@users.noreply.github.com>
…ShellRoute.notifyRootObserver` instead
Uh oh!
There was an error while loading. Please reload this page.
flutter/packages@3d926aa...f13bad3 2025-11-06 stuartmorgan@google.com Add Linux CODEOWNERS (flutter/packages#10235) 2025-11-06 stuartmorgan@google.com [ci] Add missing deps (flutter/packages#10366) 2025-11-05 65709676+huanghui1998hhh@users.noreply.github.com [go_router] ShellRoute will merge GoRouter's observers (flutter/packages#9436) 2025-11-05 dgyurov@gmail.com [pigeon] Update analyzer version (flutter/packages#10352) 2025-11-04 stuartmorgan@google.com [tool] Remove use of FETCH_HEAD (flutter/packages#10357) 2025-11-04 engine-flutter-autoroll@skia.org Roll Flutter from 027f2e4 to e5d5c01 (73 revisions) (flutter/packages#10362) 2025-11-04 8490712+ruicraveiro@users.noreply.github.com [camera_platform_interface] Adds support for video stabilization to camera_platform_interface (flutter/packages#10337) 2025-11-04 filiph@users.noreply.github.com [google_maps_flutter] Raise `MapUsedAfterWidgetDisposedError` when map controller used after map disposed (flutter/packages#9242) 2025-11-04 tarrinneal@gmail.com [pigeon] Replace containsKey with contains in Kotlin generator (flutter/packages#10274) 2025-11-04 116356835+AbdeMohlbi@users.noreply.github.com [video_player] Remove `package` in example `AndroidManifest.xml` file (flutter/packages#10245) 2025-11-04 me@nils.re [flutter_svg] Fixes typo of `allowDrawingOutsideViewBox` in doc comments. (flutter/packages#10256) 2025-11-04 stuartmorgan@google.com [in_app_purchase] Remove use of Pigeon's Dart test generator (flutter/packages#10328) 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
flutter/packages@3d926aa...f13bad3 2025-11-06 stuartmorgan@google.com Add Linux CODEOWNERS (flutter/packages#10235) 2025-11-06 stuartmorgan@google.com [ci] Add missing deps (flutter/packages#10366) 2025-11-05 65709676+huanghui1998hhh@users.noreply.github.com [go_router] ShellRoute will merge GoRouter's observers (flutter/packages#9436) 2025-11-05 dgyurov@gmail.com [pigeon] Update analyzer version (flutter/packages#10352) 2025-11-04 stuartmorgan@google.com [tool] Remove use of FETCH_HEAD (flutter/packages#10357) 2025-11-04 engine-flutter-autoroll@skia.org Roll Flutter from 027f2e4 to e5d5c01 (73 revisions) (flutter/packages#10362) 2025-11-04 8490712+ruicraveiro@users.noreply.github.com [camera_platform_interface] Adds support for video stabilization to camera_platform_interface (flutter/packages#10337) 2025-11-04 filiph@users.noreply.github.com [google_maps_flutter] Raise `MapUsedAfterWidgetDisposedError` when map controller used after map disposed (flutter/packages#9242) 2025-11-04 tarrinneal@gmail.com [pigeon] Replace containsKey with contains in Kotlin generator (flutter/packages#10274) 2025-11-04 116356835+AbdeMohlbi@users.noreply.github.com [video_player] Remove `package` in example `AndroidManifest.xml` file (flutter/packages#10245) 2025-11-04 me@nils.re [flutter_svg] Fixes typo of `allowDrawingOutsideViewBox` in doc comments. (flutter/packages#10256) 2025-11-04 stuartmorgan@google.com [in_app_purchase] Remove use of Pigeon's Dart test generator (flutter/packages#10328) 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
flutter/packages@3d926aa...f13bad3 2025-11-06 stuartmorgan@google.com Add Linux CODEOWNERS (flutter/packages#10235) 2025-11-06 stuartmorgan@google.com [ci] Add missing deps (flutter/packages#10366) 2025-11-05 65709676+huanghui1998hhh@users.noreply.github.com [go_router] ShellRoute will merge GoRouter's observers (flutter/packages#9436) 2025-11-05 dgyurov@gmail.com [pigeon] Update analyzer version (flutter/packages#10352) 2025-11-04 stuartmorgan@google.com [tool] Remove use of FETCH_HEAD (flutter/packages#10357) 2025-11-04 engine-flutter-autoroll@skia.org Roll Flutter from 027f2e4 to e5d5c01 (73 revisions) (flutter/packages#10362) 2025-11-04 8490712+ruicraveiro@users.noreply.github.com [camera_platform_interface] Adds support for video stabilization to camera_platform_interface (flutter/packages#10337) 2025-11-04 filiph@users.noreply.github.com [google_maps_flutter] Raise `MapUsedAfterWidgetDisposedError` when map controller used after map disposed (flutter/packages#9242) 2025-11-04 tarrinneal@gmail.com [pigeon] Replace containsKey with contains in Kotlin generator (flutter/packages#10274) 2025-11-04 116356835+AbdeMohlbi@users.noreply.github.com [video_player] Remove `package` in example `AndroidManifest.xml` file (flutter/packages#10245) 2025-11-04 me@nils.re [flutter_svg] Fixes typo of `allowDrawingOutsideViewBox` in doc comments. (flutter/packages#10256) 2025-11-04 stuartmorgan@google.com [in_app_purchase] Remove use of Pigeon's Dart test generator (flutter/packages#10328) 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
`ShellRoute` currently does not trigger `observers` defined in `GoRouter`, which is unexpected behavior. Fixesflutter/flutter#112196 ## Pre-Review Checklist [^1]: Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling.
ShellRoutecurrently does not triggerobserversdefined inGoRouter, which is unexpected behavior.Fixesflutter/flutter#112196
Pre-Review Checklist
[shared_preferences]pubspec.yamlwith an appropriate new version according to the pub versioning philosophy, or I have commented below to indicate which version change exemption this PR falls under1.CHANGELOG.mdto add a description of the change, following repository CHANGELOG style, or I have commented below to indicate which CHANGELOG exemption this PR falls under1.///).If you need help, consider asking for advice on the #hackers-new channel on Discord.
Footnotes
Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling. ↩↩2↩3