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

state update on an unmounted component #29

Closed
ggschaetz opened this issue May 13, 2020 · 2 comments
Closed

state update on an unmounted component #29

ggschaetz opened this issue May 13, 2020 · 2 comments
Labels
bug Something isn't working

Comments

@ggschaetz
Copy link

Hi.

I use your component and i unfortunately get this message: 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. in FontPicker (at FontSelector.js:30)

my component using hooks, not classes I deduce from it that the error comes from your library.

if you implement it in react like your exemple yout will get Can't call setState on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to this.statedirectly or define astate = {}; class property with the desired state in the FontPicker component.

i hope this help you :)

@samuelmeuli samuelmeuli added the bug Something isn't working label May 13, 2020
samuelmeuli added a commit that referenced this issue May 13, 2020
@samuelmeuli
Copy link
Owner

Thanks for reporting! This should be fixed in v3.5.2.

@MrOli3000
Copy link

This is still occurring in v3.5.2. Can I suggest that you reopen this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants