@samitouri / QOS-React / commits / 890d52bafc

Move ReactElementType to shared (#8991)

This is currently used by both isomorphic and the renderer. I think that we can probably split these up. The isomorphic type should actually be different. It has to do with that the caller needs to know exactly which type of element it is but this is never needed in the renderer which only needs to know that the type is internally consistent. The owner type is renderer dependent so it can literally be anything.

Sebastian Markbåge committed Feb 13, 2017 at 13:54 UTC 890d52bafc5f6bfad122a59b80c695473c3fa6c1
1 file changed +1 -3
src/shared/ReactElementType.js renamed
+1 -3
@@ -12,8 +12,6 @@
12
13 'use strict';
14
15 -import type { ReactInstance } from 'ReactInstanceType';
16 -
15 export type Source = {
16 fileName: string,
17 lineNumber: number,
@@ -25,7 +23,7 @@ export type ReactElement = {
23 key: any,
24 ref: any,
25 props: any,
28 - _owner: ReactInstance,
26 + _owner: any, // ReactInstance or ReactFiber
27
28 // __DEV__
29 _store: {