csells / go_router

The purpose of the go_router for Flutter is to use declarative routes to reduce complexity, regardless of the platform you're targeting (mobile, web, desktop), handling deep linking from Android, iOS and the web while still allowing an easy-to-use developer experience.
https://gorouter.dev
441 stars 97 forks source link

pushing routes with `queryParams` #93

Closed csells closed 3 years ago

csells commented 3 years ago

Discussed in https://github.com/csells/go_router/discussions/88

Originally posted by **raulmabe** October 12, 2021 I am trying to push a route (`/search`) with `queryParams` from a top-level route (`/`) but throws `AssertionError` because of the following constraint `assert(identical(match.queryParams, matches.first.queryParams));` in [line 661](https://github.com/csells/go_router/blob/master/lib/src/go_router_impl.dart#L661). Is it incompatible to use push and `queryParams` at the same time? Same happens with the `extra` property
raulmabe commented 3 years ago

I think this issue is duplicate of #89

csells commented 3 years ago

closing as dup: https://github.com/csells/go_router/issues/89