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

Warning: Can't perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. #311

@zoripong

Description

@zoripong

Hi.

Warning: Can't perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in a useEffect cleanup function.

I’m using logout hook now, but it didn’t clean up inside useEffect, causing memory leak. (ref)

In addition, google scripts are being added every time a component is re-rendered.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions