| 12297 | } |
| 12298 | |
| 12299 | function prepareToHydrateHostInstance(fiber, rootContainerInstance, hostContext) { |
| 12300 | var instance = fiber.stateNode; |
| 12301 | var updatePayload = hydrateInstance(instance, fiber.type, fiber.memoizedProps, rootContainerInstance, hostContext, fiber); |
| 12302 | // TODO: Type this specific to this type of component. |
| 12303 | fiber.updateQueue = updatePayload; |
| 12304 | // If the update payload indicates that there is a change or if there |
| 12305 | // is a new ref we mark this as an update. |
| 12306 | if (updatePayload !== null) { |
| 12307 | return true; |
| 12308 | } |
| 12309 | return false; |
| 12310 | } |
| 12311 | |
| 12312 | function prepareToHydrateHostTextInstance(fiber) { |
| 12313 | var textInstance = fiber.stateNode; |