| 12194 | } |
| 12195 | |
| 12196 | function prepareToHydrateHostInstance(fiber, rootContainerInstance, hostContext) { |
| 12197 | var instance = fiber.stateNode; |
| 12198 | var updatePayload = hydrateInstance(instance, fiber.type, fiber.memoizedProps, rootContainerInstance, hostContext, fiber); |
| 12199 | // TODO: Type this specific to this type of component. |
| 12200 | fiber.updateQueue = updatePayload; |
| 12201 | // If the update payload indicates that there is a change or if there |
| 12202 | // is a new ref we mark this as an update. |
| 12203 | if (updatePayload !== null) { |
| 12204 | return true; |
| 12205 | } |
| 12206 | return false; |
| 12207 | } |
| 12208 | |
| 12209 | function prepareToHydrateHostTextInstance(fiber) { |
| 12210 | var textInstance = fiber.stateNode; |