dillon1000/react

Commit

Fix Listener Cleanup on Unmount

We need to make sure that deleteAllListeners() is invoked before we call
the superclass's unmountComponent() method or else we will lose
this._rootNodeID.

I also added an invariant and unit test to make sure we do not break
this in the future.
Browse files
Changed paths2 files
First-parent comparison
M src/core/ReactNativeComponent.js ModifiedM src/core/__tests__/ReactNativeComponent-test.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…