Browse files

TouchableHighlight needes to set _isMounted false when it unmounts.

D5016368 to suppress the warning had a typo which meant `_isMounted` would never get set
`false` and thus some functions could be called on unmounted refs.

Reviewed By: yungsters

Differential Revision: D5034076

fbshipit-source-id: 6334db6ee2f9e19c1bb4da2572987dc10773e28d
  • Loading branch information...
sahrens authored and facebook-github-bot committed May 10, 2017
1 parent 7dd2cd3 commit d40a7ea7f98211362f780fa15b105f3a71e0203b
Showing with 1 addition and 1 deletion.
  1. +1 −1 Libraries/Components/Touchable/TouchableHighlight.js
@@ -149,7 +149,7 @@ var TouchableHighlight = React.createClass({
componentWillMount: function() {
componentWillUnmount: function() {
this._isMounted = false;

0 comments on commit d40a7ea

Please sign in to comment.