You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
tsantos84
changed the title
Unnecessary screen rebuild on navigation
[compass_app] Unnecessary screen rebuild on navigation
Feb 4, 2025
While I’m not entirely sure if these issues are directly related to this specific problem, they might provide some useful context or overlap. It would be great to investigate further to determine if this is a known issue or a new edge case.
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:
_load
method has been called again.The text was updated successfully, but these errors were encountered: