Skip to content

Multiple re-renders when using auth info within a RequiredAuthProvider #81

@deepjoy

Description

@deepjoy

Components using useAuthInfo were experiencing 3 unnecessary re-renders on mount, even when there were no authentication state changes. This was caused by the implementation pattern in useClientRef which used lazy initialization in the render phase.

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