Skip to content
This repository was archived by the owner on Feb 7, 2023. It is now read-only.
This repository was archived by the owner on Feb 7, 2023. It is now read-only.

Fix memory leak with the <EasterEggUsername/> #39

@zbreit

Description

@zbreit

When you log out while the <EasterEggUsername/> is active, there is a memory leak because the colors are trying to toggle while the component is unmounted.

Doing this will probably involve using the useIsFocused() hook and wrapping the setState() calls w/ if (isFocused) {...}. That will require this component to be refactored into a modular component.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingrefactoringAny code improvements or suggestions

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions