Tom Underhill and Facebook Github Bot
6671165f69
RNTesterIntegrationTests can fail due to the warning "Can't call setState (or forceUpdate) on an unmounted component." ( #24984 )
...
Summary:
When running the RNTesterIntegrationTests from the XCode IDE or xcodebuild command line, its possible for tests to intermittently fail due to the warning `'Warning: Can\'t call setState (or forceUpdate) on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in the componentWillUnmount method.%s', '\n in RNTesterApp.` .
A setState() call could happen in the AsyncStorage callback after the component had unmounted: presumably because the test ran and concluded before AsyncStorage returned. Changed RNTesterApp.ios.js to maintain a _mounted field that is set and cleared in componentDidMount() and componentWillUnmount() and refrain from calling setState() if the flag is false.
## Changelog
[iOS] [Fixed] - Fixed RNTesterApp to not call setState() after the component has been unmounted.
Pull Request resolved: https://github.com/facebook/react-native/pull/24984
Differential Revision: D15447898
Pulled By: hramos
fbshipit-source-id: b01bc0a40a4f4d548aca0a4bb891ba3f4c8d0612
2019-05-21 23:21:55 -07:00
..
2019-04-10 10:20:25 -07:00
2019-05-13 08:18:14 -07:00
2017-05-08 11:31:19 -07:00
2019-04-10 10:20:25 -07:00
2019-05-20 01:32:53 -07:00
2019-05-20 01:32:53 -07:00
2019-04-10 10:20:25 -07:00
2018-12-31 08:30:54 -08:00
2019-04-10 10:20:25 -07:00
2019-04-10 10:20:25 -07:00
2019-04-10 10:20:25 -07:00
2019-04-10 10:20:25 -07:00
2019-04-10 10:20:25 -07:00
2019-04-10 10:20:25 -07:00
2019-04-10 10:20:25 -07:00
2019-04-10 10:20:25 -07:00
2019-04-10 10:20:25 -07:00
2017-05-08 11:31:19 -07:00
2019-04-10 10:20:25 -07:00
2019-04-10 10:20:25 -07:00
2019-04-10 10:20:25 -07:00
2019-04-10 10:20:25 -07:00
2019-04-10 10:20:25 -07:00
2019-03-12 19:41:51 -07:00
2019-04-10 10:20:25 -07:00
2019-04-10 10:20:25 -07:00
2019-04-10 10:20:25 -07:00
2019-04-10 10:20:25 -07:00
2019-05-20 07:46:03 -07:00
2017-08-31 15:16:05 -07:00
2017-05-08 11:31:19 -07:00
2017-05-08 11:31:19 -07:00
2019-03-06 14:57:30 -08:00
2019-04-10 10:20:25 -07:00
2019-04-10 10:20:25 -07:00
2019-04-10 10:20:25 -07:00
2017-07-11 15:05:57 -07:00
2019-04-10 10:20:25 -07:00
2019-04-10 10:20:25 -07:00
2019-04-10 10:20:25 -07:00
2019-04-10 10:20:25 -07:00
2019-04-10 10:20:25 -07:00
2018-12-31 08:30:54 -08:00
2019-04-10 10:20:25 -07:00
2019-01-28 03:18:44 -08:00
2018-01-12 22:18:45 -08:00
2019-04-10 10:20:25 -07:00
2019-04-10 10:20:25 -07:00
2019-04-10 10:20:25 -07:00
2019-05-14 05:52:03 -07:00
2019-04-10 10:20:25 -07:00
2019-04-10 10:20:25 -07:00
2019-04-10 10:20:25 -07:00
2019-04-10 10:20:25 -07:00
2019-04-10 10:20:25 -07:00
2019-04-10 10:20:25 -07:00
2019-04-10 10:20:25 -07:00
2019-04-10 10:20:25 -07:00
2019-04-10 10:20:25 -07:00
2019-04-10 10:20:25 -07:00
2019-04-10 10:20:25 -07:00
2017-08-31 15:16:05 -07:00
2018-09-11 15:33:07 -07:00
2019-04-10 10:20:25 -07:00
2019-05-21 23:21:55 -07:00
2018-11-05 13:57:47 -08:00
2019-04-10 10:20:25 -07:00
2019-01-10 15:47:02 -08:00
2019-04-10 10:20:25 -07:00
2019-04-10 10:20:25 -07:00
2019-05-21 03:46:50 -07:00
2019-05-20 02:15:10 -07:00
2018-09-11 15:33:07 -07:00
2018-09-25 17:17:37 -07:00
2019-04-10 10:20:25 -07:00
2019-04-10 10:20:25 -07:00
2019-04-10 10:20:25 -07:00
2019-04-10 10:20:25 -07:00
2019-04-10 10:20:25 -07:00
2019-04-10 10:20:25 -07:00
2019-05-08 03:06:14 -07:00
2019-04-10 10:20:25 -07:00
2019-05-03 11:43:10 -07:00
2019-04-10 10:20:25 -07:00
2019-04-10 10:20:25 -07:00
2019-04-10 10:20:25 -07:00
2019-04-10 10:20:25 -07:00
2017-05-08 11:31:19 -07:00
2017-05-08 11:31:19 -07:00
2017-05-08 11:31:19 -07:00
2017-05-08 11:31:19 -07:00
2017-05-08 11:31:19 -07:00
2017-05-08 11:31:19 -07:00
2019-04-10 10:20:25 -07:00
2019-04-10 10:20:25 -07:00
2019-04-10 10:20:25 -07:00
2019-04-10 10:20:25 -07:00
2019-04-10 10:20:25 -07:00
2019-03-16 07:33:14 -07:00
2019-05-13 08:18:14 -07:00
2019-05-13 08:18:14 -07:00
2019-04-10 10:20:25 -07:00
2019-04-10 10:20:25 -07:00
2019-04-10 10:20:25 -07:00
2019-04-10 10:20:25 -07:00
2019-04-10 10:20:25 -07:00
2019-04-10 10:20:25 -07:00
2019-04-10 10:20:25 -07:00
2019-04-10 10:20:25 -07:00
2019-04-10 10:20:25 -07:00
2019-04-10 10:20:25 -07:00
2019-02-28 18:09:37 -08:00
2019-05-08 03:06:14 -07:00
2018-12-31 08:30:54 -08:00
2017-05-08 11:31:19 -07:00
2017-05-08 11:31:19 -07:00
2017-10-25 08:20:48 -07:00
2017-05-08 11:31:19 -07:00
2017-05-08 11:31:19 -07:00
2018-09-11 15:33:07 -07:00
2019-04-10 10:20:25 -07:00
2019-04-10 10:20:25 -07:00
2019-04-10 10:20:25 -07:00
2019-03-06 14:57:30 -08:00
2019-04-10 10:20:25 -07:00
2019-04-15 12:02:36 -07:00
2019-04-15 12:02:36 -07:00
2019-04-10 10:20:25 -07:00
2019-04-10 10:20:25 -07:00
2019-04-10 10:20:25 -07:00
2019-05-08 03:17:04 -07:00
2019-04-10 10:20:25 -07:00
2019-04-10 10:20:25 -07:00