Skip to content

Console Warning - Memory Leakage #235

@shahbazshoukat

Description

@shahbazshoukat

Is this a support request?
The issue is in SDK.

Describe the bug
I am encountering a console warning related to memory leakage. The warning message is as follows:

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 the componentWillUnmount method.

To reproduce
Use LDProvider component:

image

Expected behavior
There should not be any memory leakage warning in the console when initializing the Launch Darkly.

Logs
image

Screenshot 2024-01-03 at 2 47 22 PM

SDK version
3.0.9

Language version, developer tools
TS/React

OS/platform
MacOS: 13.4.1 (c)
Browser: Google Chorme - Version 120.0.6099.129 (Official Build) (arm64)

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