Type ReactInvalidSetStateWarningHook (#7572)
Christopher Chedeau committed
Aug 26, 2016 at 14:47 UTC
09887e03119537818e29471505a78ec264761259
1 file changed
+4
-3
src/renderers/shared/hooks/ReactInvalidSetStateWarningHook.js
+4
-3
@@ -7,6 +7,7 @@
7
* of patent rights can be found in the PATENTS file in the same directory.
8
*
9
* @providesModule ReactInvalidSetStateWarningHook
10
+ * @flow
11
*/
12
13
'use strict';
@@ -25,13 +26,13 @@ if (__DEV__) {
26
}
27
28
var ReactInvalidSetStateWarningHook = {
28
- onBeginProcessingChildContext() {
29
+ onBeginProcessingChildContext(): void {
30
processingChildContext = true;
31
},
31
- onEndProcessingChildContext() {
32
+ onEndProcessingChildContext(): void {
33
processingChildContext = false;
34
},
34
- onSetState() {
35
+ onSetState(): void {
36
warnInvalidSetState();
37
},
38
};