-
Notifications
You must be signed in to change notification settings - Fork 3.3k
[go_router]: fix GoRouter.optionURLReflectsImperativeAPIs flag works with new imperative APIs #6236
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
@chunhtai |
@Hangyujin |
@polina-c mb you can help with review this PR? |
@Hangyujin seems to be better person to review this |
Hi, this PR looks good to me, thank you for fixing this issue introduced by 13.0.0. @johnpryan Hi John, can you take a second look at this pr since chun-heng is on vacation? This pr fixes an issue that is introduced by go_router 13.0.0 because 13.0.0 refactored RouteMatchList to be a tree structure. |
@anisovdev Can you bump the version to 13.2.2 and also update pubspec.yaml? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
packages/go_router/CHANGELOG.md
Outdated
@@ -2,6 +2,7 @@ | |||
|
|||
- Updates minimum supported SDK version to Flutter 3.16/Dart 3.2. | |||
- Fixes memory leaks. | |||
- GoRouter.optionURLReflectsImperativeAPIs now works correctly with new imperative APIs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: This description sounds like you changed the "optionURLReflectsImperativeAPIs" flag. You can update the description like "Fixes restoreRouteInformation
issue when GoRouter.optionURLReflectsImperativeAPIs is true and the last match is ShellRouteMatch"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
cleanup CHANGELOG.md
@Hangyujin |
auto label is removed for flutter/packages/6236, due to This PR has not met approval requirements for merging. The PR author is not a member of flutter-hackers and needs 1 more review(s) in order to merge this PR.
|
@johnpryan Hi John, can you take a second look at this pr since chun-heng is on vacation? This pr fixes an issue that is introduced by go_router 13.0.0 because 13.0.0 refactored RouteMatchList to be a tree structure. |
@johnpryan Review please this Pull Request |
@Hangyujin now this PR has two review |
…g works with new imperative APIs (flutter/packages#6236)
…g works with new imperative APIs (flutter/packages#6236)
flutter/packages@924c7e6...51faaa1 2024-03-29 [email protected] [shared_preferences] Update mockito to the new version available 5.2.0 (flutter/packages#6332) 2024-03-29 [email protected] Manual roll Flutter (stable) from 68bfaea to 300451a (2 revisions) (flutter/packages#6433) 2024-03-28 49699333+dependabot[bot]@users.noreply.github.com [image_picker]: Bump androidx.exifinterface:exifinterface from 1.3.6 to 1.3.7 in /packages/image_picker/image_picker_android/android (flutter/packages#5705) 2024-03-28 [email protected] Manual roll Flutter from dbdcead to 89ea492 (54 revisions) (flutter/packages#6431) 2024-03-28 [email protected] [ci] Adds sleep 60s to release action. (flutter/packages#6405) 2024-03-28 [email protected] [go_router]: fix GoRouter.optionURLReflectsImperativeAPIs flag works with new imperative APIs (flutter/packages#6236) 2024-03-28 [email protected] [interactive_media_ads] Reland "Creates and adds the interactive_media_ads plugin #6060" (flutter/packages#6425) 2024-03-28 [email protected] [google_sign_in_ios] Pins GoogleSignIn to 7.0.0 in podspec. (flutter/packages#6430) 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 [email protected],[email protected] 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
…with new imperative APIs (flutter#6236) After 13.0.0 release of go_router package `GoRouter.optionURLReflectsImperativeAPIs` is not working correct. Isn't correct = url in browser doesn't updates after push, example you can see in new test, or in linked issue [List which issues are fixed by this PR. You must list at least one issue.](flutter/flutter#142053)
After 13.0.0 release of go_router package
GoRouter.optionURLReflectsImperativeAPIs
is not working correct.Isn't correct = url in browser doesn't updates after push, example you can see in new test, or in linked issue
List which issues are fixed by this PR. You must list at least one issue.
Pre-launch Checklist
dart format
.)[shared_preferences]
pubspec.yaml
with an appropriate new version according to the pub versioning philosophy, or this PR is exempt from version changes.CHANGELOG.md
to add a description of the change, following repository CHANGELOG style.///
).If you need help, consider asking for advice on the #hackers-new channel on Discord.