@samitouri / QOS-React / commits / e8571c798d

Tweak ReactTypeOfWork order (#13444)

Dan Abramov committed Aug 20, 2018 at 16:51 UTC e8571c798d56ad19b57ae762afa260a76939aa8c
1 file changed +5 -5
packages/shared/ReactTypeOfWork.js
+5 -5
@@ -26,11 +26,11 @@ export type TypeOfWork =
26 | 15
27 | 16;
28
29 -export const IndeterminateComponent = 0; // Before we know whether it is functional or class
30 -export const FunctionalComponent = 1;
31 -export const FunctionalComponentLazy = 2;
32 -export const ClassComponent = 3;
33 -export const ClassComponentLazy = 4;
29 +export const FunctionalComponent = 0;
30 +export const FunctionalComponentLazy = 1;
31 +export const ClassComponent = 2;
32 +export const ClassComponentLazy = 3;
33 +export const IndeterminateComponent = 4; // Before we know whether it is functional or class
34 export const HostRoot = 5; // Root of a host tree. Could be nested inside another node.
35 export const HostPortal = 6; // A subtree. Could be an entry point to a different renderer.
36 export const HostComponent = 7;