File tree 3 files changed +1
-10
lines changed
3 files changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -25,9 +25,6 @@ class AsyncComponentProvider extends React.Component {
25
25
this . id += 1 ;
26
26
return this . id ;
27
27
} ,
28
- registerComponent : ( id , Component ) => {
29
- this . props . execContext . registerComponent ( id , Component ) ;
30
- } ,
31
28
getComponent : id => this . props . execContext . getComponent ( id ) ,
32
29
} ,
33
30
} ;
@@ -41,15 +38,13 @@ class AsyncComponentProvider extends React.Component {
41
38
AsyncComponentProvider . propTypes = {
42
39
children : React . PropTypes . node . isRequired ,
43
40
execContext : React . PropTypes . shape ( {
44
- registerComponent : React . PropTypes . func . isRequired ,
45
41
getComponent : React . PropTypes . func . isRequired ,
46
42
} ) . isRequired ,
47
43
} ;
48
44
49
45
AsyncComponentProvider . childContextTypes = {
50
46
asyncComponents : React . PropTypes . shape ( {
51
47
nextId : React . PropTypes . func . isRequired ,
52
- registerComponent : React . PropTypes . func . isRequired ,
53
48
getComponent : React . PropTypes . func . isRequired ,
54
49
} ) . isRequired ,
55
50
} ;
Original file line number Diff line number Diff line change @@ -65,9 +65,7 @@ function createAsyncComponent(args) {
65
65
resolveComponent ( ) {
66
66
return getResolver ( ) . then ( Component =>
67
67
this . setState ( {
68
- Component : es6Aware
69
- ? es6Resolve ( Component )
70
- : Component ,
68
+ Component : es6Resolve ( Component ) ,
71
69
} ) ,
72
70
) ;
73
71
}
@@ -86,7 +84,6 @@ function createAsyncComponent(args) {
86
84
AsyncComponent . contextTypes = {
87
85
asyncComponents : React . PropTypes . shape ( {
88
86
nextId : React . PropTypes . func . isRequired ,
89
- registerComponent : React . PropTypes . func . isRequired ,
90
87
getComponent : React . PropTypes . func . isRequired ,
91
88
} ) ,
92
89
} ;
Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ export type ExecContext = {
14
14
export type ProviderChildContext = {
15
15
asyncComponents : {
16
16
nextId : ( ) => number ,
17
- registerComponent : ( number , Function ) => void ,
18
17
getComponent : ( number ) => ?Function ,
19
18
}
20
19
} ;
You can’t perform that action at this time.
0 commit comments