Skip to content

Conversation

@shruthilayaj
Copy link
Member

Clean up how we set state in this component to prevent
state updates after the component may have unmounted.

Should prevent the:

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.

errors when running yarn test -u tests/js/spec/views/dashboardsV2/detail.spec.jsx

Clean up how we set state in this component to prevent
state updates after the component may have unmounted.
Copy link
Member

@k-fish k-fish left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tyty

@shruthilayaj shruthilayaj merged commit b478d17 into master Nov 1, 2021
@shruthilayaj shruthilayaj deleted the fix/qidget-queries-state-update-after-unmount branch November 1, 2021 14:48
@github-actions github-actions bot locked and limited conversation to collaborators Nov 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants