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:
- Start the application in development mode.
- Clear the app logs for easier analysis.
- From the HomeScreen, tap the first activity. This will navigate to the ActivitiesScreen.
- Examine the logs. You'll see the HomeViewModel logs reappear, indicating that the
_load method has been called again.