| 11392 | } |
| 11393 | |
| 11394 | function prepareToHydrateHostInstance(fiber, rootContainerInstance, hostContext) { |
| 11395 | var instance = fiber.stateNode; |
| 11396 | var updatePayload = hydrateInstance(instance, fiber.type, fiber.memoizedProps, rootContainerInstance, hostContext, fiber); |
| 11397 | // TODO: Type this specific to this type of component. |
| 11398 | fiber.updateQueue = updatePayload; |
| 11399 | // If the update payload indicates that there is a change or if there |
| 11400 | // is a new ref we mark this as an update. |
| 11401 | if (updatePayload !== null) { |
| 11402 | return true; |
| 11403 | } |
| 11404 | return false; |
| 11405 | } |
| 11406 | |
| 11407 | function prepareToHydrateHostTextInstance(fiber) { |
| 11408 | var textInstance = fiber.stateNode; |