Skip to content

MaterialTopBarExample recreates navigator component types during render #1120

Description

@OskarEichler

MaterialTopBarExample calls createNativeStackNavigator on every render, and PostAuthScreen does the same with createMaterialTopTabNavigator. A renderer diagnostic with navigator-factory instrumentation confirms parent updates recreate navigator types. This can remount navigation state unnecessarily. Proposed fix: construct both navigators once at module scope and keep the existing signed-in/signed-out screen logic. This source audit is AI-assisted.

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