Skip to content
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

[go_router] Fixes issue that path parameters are not set when using t… #6698

Merged
merged 3 commits into from May 17, 2024

Conversation

chunhtai
Copy link
Contributor

@chunhtai chunhtai commented May 8, 2024

…he goBranch.

fixes flutter/flutter#129878

Pre-launch Checklist

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

return _router.configuration.locationForRoute(route)!;
final List<String> parameters = <String>[];
patternToRegExp(route.path, parameters);
assert(
Copy link
Contributor

Choose a reason for hiding this comment

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

Add test for this assertion case too?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It looks like the route constructor already asserted this. so this assert is not reachable. I removed the comment since and treated it as a sanity check since it is no longer user facing check

Copy link
Contributor

@hangyujin hangyujin left a comment

Choose a reason for hiding this comment

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

LGTM

@chunhtai chunhtai added the autosubmit Merge PR when tree becomes green via auto submit App label May 17, 2024
@auto-submit auto-submit bot merged commit a99c7f5 into flutter:main May 17, 2024
74 checks passed
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request May 20, 2024
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request May 20, 2024
flutter/packages@ae4dd32...ba19b24

2024-05-19 [email protected] Roll Flutter from 00425ef to adf279f (13 revisions) (flutter/packages#6761)
2024-05-18 49699333+dependabot[bot]@users.noreply.github.com Bump actions/checkout from 4.1.4 to 4.1.6 (flutter/packages#6751)
2024-05-17 [email protected] [go_router] Fixes issue that path parameters are not set when using tâ�¦ (flutter/packages#6698)

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
TecHaxter pushed a commit to TecHaxter/flutter_packages that referenced this pull request May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autosubmit Merge PR when tree becomes green via auto submit App p: go_router
Projects
None yet
2 participants