Skip to content

enhance: Block dispatches after unmount #2307

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

Merged
merged 3 commits into from
Dec 2, 2022
Merged

Conversation

ntucker
Copy link
Collaborator

@ntucker ntucker commented Dec 2, 2022

Motivation

User-land managers might call dispatchers after unmount. Forcing users to think about this is unnecessary complexity and learning curve.

Solution

Simply ignore them. In dev mode we will log at debug level as this is not considered a bug. But it may be useful if one is expecting dispatches to know where they went.

@ntucker ntucker force-pushed the enhance/dispatch-safety branch from 6c75bee to 7766825 Compare December 2, 2022 19:48
@ntucker ntucker requested a review from notwillk December 2, 2022 19:48
@ntucker ntucker force-pushed the enhance/dispatch-safety branch from 7766825 to 41047e6 Compare December 2, 2022 19:48
@ntucker ntucker merged commit 55af3e6 into master Dec 2, 2022
@ntucker ntucker deleted the enhance/dispatch-safety branch December 2, 2022 20:12
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

Successfully merging this pull request may close these issues.

2 participants