Skip to content

Commit 890d52b

Browse files
authored
Move ReactElementType to shared (facebook#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.
1 parent 4a05f26 commit 890d52b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/isomorphic/classic/element/ReactElementType.js renamed to src/shared/ReactElementType.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212

1313
'use strict';
1414

15-
import type { ReactInstance } from 'ReactInstanceType';
16-
1715
export type Source = {
1816
fileName: string,
1917
lineNumber: number,
@@ -25,7 +23,7 @@ export type ReactElement = {
2523
key: any,
2624
ref: any,
2725
props: any,
28-
_owner: ReactInstance,
26+
_owner: any, // ReactInstance or ReactFiber
2927

3028
// __DEV__
3129
_store: {

0 commit comments

Comments
 (0)