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

Add custom errors for common use cases of using a component after being disposed #150

Closed
mairatma opened this issue Aug 11, 2016 · 0 comments
Assignees

Comments

@mairatma
Copy link
Contributor

Calling functions on a component after it's been disposed will almost always throw an error, since disposing will cause the component to get rid of listeners and variables so that the garbage collector can work.

The error that gets thrown is hard to debug though, since it doesn't say anything about the component being disposed, it's usually a type error due to calling something on data that was removed, for example. We should have custom errors to help debug the most common use cases easily (like calling setState or setting state directly).

@mairatma mairatma self-assigned this Aug 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant