Skip to content

Unnecessary recomposition when navigating to the current screen from the TopBar #210

@LuisDev2576

Description

@LuisDev2576

Issue Description

When a user focuses or clicks on a TopBar tab that corresponds to the screen they are already on, the app still triggers a navigation action.
This causes an unnecessary recomposition of the current screen, even though the user is not navigating to a new destination.

Expected Behavior

Navigation should only occur when the destination screen is different from the current one.
If the user re-selects the same tab, the app should remain on the current screen without triggering a recomposition.

Impact

  • Unnecessary recompositions
  • Performance overhead
  • Potential negative impact on user experience

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions