@@ -215,6 +215,7 @@ module.exports = function<T, P, I, TI, C, CX>(
215
215
}
216
216
case HostComponent :
217
217
popHostContext ( workInProgress ) ;
218
+ const type = workInProgress . type ;
218
219
let newProps = workInProgress . pendingProps ;
219
220
if ( current && workInProgress . stateNode != null ) {
220
221
// If we have an alternate, that means this is an update and we need to
@@ -228,7 +229,7 @@ module.exports = function<T, P, I, TI, C, CX>(
228
229
newProps = workInProgress . memoizedProps || oldProps ;
229
230
}
230
231
const instance : I = workInProgress.stateNode;
231
- if (prepareUpdate(instance, oldProps, newProps)) {
232
+ if (prepareUpdate(instance, type, oldProps, newProps)) {
232
233
// This returns true if there was something to update.
233
234
markUpdate ( workInProgress ) ;
234
235
}
@@ -249,14 +250,14 @@ module.exports = function<T, P, I, TI, C, CX>(
249
250
// or completeWork depending on we want to add then top->down or
250
251
// bottom->up. Top->down is faster in IE11.
251
252
const instance = createInstance (
252
- workInProgress . type ,
253
+ type ,
253
254
newProps ,
254
255
rootContainerInstance ,
255
256
currentHostContext ,
256
257
workInProgress
257
258
) ;
258
259
appendAllChildren ( instance , workInProgress ) ;
259
- finalizeInitialChildren ( instance , newProps , rootContainerInstance ) ;
260
+ finalizeInitialChildren ( instance , type , newProps , rootContainerInstance ) ;
260
261
261
262
workInProgress . stateNode = instance ;
262
263
if ( workInProgress . ref ) {
0 commit comments