Skip to content

[go_router] Cleans up internal state in GoRouterDelegate #126365

@chunhtai

Description

@chunhtai

Use case

There are currently several states for different purposes that hangs around different places code. For example

  1. goRouterHero cache
  2. GoRouteStateRegistry

It is hard to keep these state up to date when modifying the build pipeline in the RouterDelegate. When should have a more unified system to keep track these state so that we don't accidentally create corner cases when making changes to these part of code.

Proposal

refactor the code

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projectp: go_routerThe go_router packagepackageflutter/packages repository. See also p: labels.

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions