Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Console Warning - Memory Leakage #235

Open
shahbazshoukat opened this issue Jan 3, 2024 · 4 comments
Open

Console Warning - Memory Leakage #235

shahbazshoukat opened this issue Jan 3, 2024 · 4 comments

Comments

@shahbazshoukat
Copy link

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)

@louis-launchdarkly
Copy link
Contributor

Hello @shahbazshoukat, thank you for reaching out with this report. We will look into this. Just to check, is this happening during development (using something like hot reload) or inside a production application?

Filed internally as 228551.

@louis-launchdarkly louis-launchdarkly added the waiting for feedback Indicates LaunchDarkly is waiting for customer feedback before issue is closed due to staleness. label Jan 5, 2024
Copy link
Contributor

github-actions bot commented Feb 5, 2024

This issue is marked as stale because it has been open for 30 days without activity. Remove the stale label or comment, or this will be closed in 7 days.

@github-actions github-actions bot added the Stale label Feb 5, 2024
@FlorianBurgevin
Copy link

It's a React warning so you see it only in development.

It's not blocking the application but it means there is something wrong in conception.

I have the same problem

@github-actions github-actions bot removed Stale waiting for feedback Indicates LaunchDarkly is waiting for customer feedback before issue is closed due to staleness. labels Feb 13, 2024
@shahbazshoukat
Copy link
Author

shahbazshoukat commented Jan 2, 2025

@louis-launchdarkly it only happens in development.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants