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

Can't perform a React state update on an unmounted component #251

Open
AdeAttwood opened this issue Jul 20, 2023 · 0 comments
Open

Can't perform a React state update on an unmounted component #251

AdeAttwood opened this issue Jul 20, 2023 · 0 comments
Labels
bug Something isn't working pending release Has been merged and will be in the next release

Comments

@AdeAttwood
Copy link
Owner

Description

We are getting an error about preforming state updates on unmounted components. I think this is coming from the delated validation. This is only happing in tests for me, however it does need to be stopped.

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.

Expected Behaviour

No console errors are thrown

Actual Behaviour

The above console error is thrown.

Steps to Reproduce the Problem

N / A

@AdeAttwood AdeAttwood added the bug Something isn't working label Jul 20, 2023
AdeAttwood added a commit that referenced this issue Jul 20, 2023
We are now cleaning up the attributes that have been queued to validate
so we don't try go though the validation process on unmounted
components. This was causing errors to be thrown during some tests.

Ref: #251
AdeAttwood added a commit that referenced this issue Jul 24, 2023
We are now cleaning up the attributes that have been queued to validate
so we don't try go though the validation process on unmounted
components. This was causing errors to be thrown during some tests.

Ref: #251
@AdeAttwood AdeAttwood added the pending release Has been merged and will be in the next release label Jul 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working pending release Has been merged and will be in the next release
Projects
None yet
Development

No branches or pull requests

1 participant