Skip to content

Memory leak #16

@sjc5

Description

@sjc5

I'm getting react memory leak warnings on the latest version: "react-render-if-visible": "^2.1.1"

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.

Perhaps window.cancelIdleCallback() needs to be returned as a cleanup somewhere. Will see if I can do some investigation here but wanted to report right away.

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