Skip to content

[compass_app] Unnecessary screen rebuild on navigation #2574

@tsantos84

Description

@tsantos84

I've cloned the compass_app project to investigate a behavior I'm also encountering in my own application. Surprisingly, compass_app exhibits the same issue: when navigating between screens, the previous screen is rebuilt, triggering its data fetching logic and resulting in an unnecessary backend call.

Here's how to reproduce the behavior:

  1. Start the application in development mode.
  2. Clear the app logs for easier analysis.
  3. From the HomeScreen, tap the first activity. This will navigate to the ActivitiesScreen.
  4. Examine the logs. You'll see the HomeViewModel logs reappear, indicating that the _load method has been called again.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions