Skip to content
This repository has been archived by the owner on Dec 31, 2020. It is now read-only.

Warn if attempting to modify comp.render after MobX has attached #799

Merged
merged 2 commits into from
Jan 12, 2020

Conversation

Venryx
Copy link
Contributor

@Venryx Venryx commented Nov 12, 2019

…nction after a MobX reaction has already attached. Helps prevent memory leaks as in: [mobxjs#797](mobxjs#797)

* Added test for the above.
* Added changelog entry.
@danielkcz
Copy link
Contributor

Please, make it DEV only check.

@Venryx
Copy link
Contributor Author

Venryx commented Nov 12, 2019

Please, make it DEV only check.

Done.

@mweststrate mweststrate merged commit 9850df8 into mobxjs:master Jan 12, 2020
@mweststrate
Copy link
Member

Great stuff, thanks!

@github-actions github-actions bot mentioned this pull request Oct 13, 2020
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.

Component-class with @observer doesn't dispose reaction if render() is hot-swapped
3 participants