dillon1000/react
Commit
Browse files 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.
Changed paths2 files
First-parent comparisonsrc/core/ReactNativeComponent.js ModifiedM src/core/__tests__/ReactNativeComponent-test.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…