Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

Make stopPolling / startPolling a no-op after unmount #3485

Merged
merged 1 commit into from Sep 11, 2019
Merged

Conversation

hwillson
Copy link
Member

Polling is automatically stopped when a component is unmounted, so it isn't necessary to call stopPolling during component cleanup. If it is called though, we don't want to throw an exception, so these changes make it (and startPolling) a no-op if component cleanup has already happened.

Fixes #3482

Polling is automatically stopped when a component is unmounted, so
it isn't necessary to call `stopPolling` during component cleanup.
If it is called though, we don't want to throw an exception, so
these changes make it (and `startPolling`) a no-op if component
cleanup has already happened.

Fixes #3482
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.1.0 [regression] stopPolling cleanup in effect
1 participant