Skip to content

[go_router] Support preloading of all StatefulShellBranch branches #127804

Closed

Description

@alaatm

Is there an existing issue for this?

Use case

As a next step to Nested stateful navigation with ShellRoute, it would be great to support an option to allow pre-loading of all the main branches.

This is to support data-oriented apps where each bottom navigation tab needs to fetch some data. While currently this can be done by doing the pre-fetching from within the initial bottom navigation tab, I think its best to have each tab resposible for its own logic and currently this is impossible as all tabs except the initial aren't loaded unless the user explicitly clicks the tab.

Proposal

Introduce an option to StatefulShellRoute whether or not to load all main branches.

Activity

  1. changed the title [-]Support preloading of all StatefulShellBranch branches[/-] [+][go_router] Support preloading of all StatefulShellBranch branches[/+] on May 30, 2023
  2. added
    c: new featureNothing broken; request for a new capability
    packageflutter/packages repository. See also p: labels.
    c: proposalA detailed proposal for a change to Flutter
    and removed
    in triagePresently being triaged by the triage team
    on May 30, 2023
  3. added
    P3Issues that are less important to the Flutter project
    on May 30, 2023
  4. iakdis commented on Jan 9, 2025

    @iakdis

    Hi @stuartmorgan, I would argue this issue could now be closed as referenced in flutter/packages@9c294ef.
    CC: @chunhtai

  5. stuartmorgan-g commented on Jan 9, 2025

    @stuartmorgan-g
    Contributor

    I'm not sure why you pinged me on this issue. A package owner familiar with the PR is welcome to close the issue if they feel that's appropriate; they don't need my approval to do so.

  6. github-actions commented on Jan 24, 2025

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  7. locked as resolved and limited conversation to collaborators on Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projectc: new featureNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to Flutterp: 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