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

[FEAT] assert when methods are called on a destroyed store instance #5605

Merged
merged 2 commits into from
Aug 28, 2018

Conversation

runspired
Copy link
Contributor

Previously, it was possible to call many of these methods (perhaps accidentally) after the store was already destroyed or in the process of being destroyed. Attempting to update the state of data in a destroyed store, or add/remove data from a destroyed store is an error. Previously these errors would be difficult to diagnose, along the lines of cannot call X of undefined, or would simply result in strange state.

This PR will help folks detect other async and teardown timing issues in their applications and test suites in a friendlier way.

Replaces #5282

cc @danwenzel. Many thanks for bringing this to our attention!

@runspired runspired merged commit bee48f0 into master Aug 28, 2018
@runspired runspired deleted the assert-store branch August 28, 2018 20:04
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.

1 participant