| 12159 | } |
| 12160 | |
| 12161 | function prepareToHydrateHostInstance(fiber, rootContainerInstance, hostContext) { |
| 12162 | var instance = fiber.stateNode; |
| 12163 | var updatePayload = hydrateInstance(instance, fiber.type, fiber.memoizedProps, rootContainerInstance, hostContext, fiber); |
| 12164 | // TODO: Type this specific to this type of component. |
| 12165 | fiber.updateQueue = updatePayload; |
| 12166 | // If the update payload indicates that there is a change or if there |
| 12167 | // is a new ref we mark this as an update. |
| 12168 | if (updatePayload !== null) { |
| 12169 | return true; |
| 12170 | } |
| 12171 | return false; |
| 12172 | } |
| 12173 | |
| 12174 | function prepareToHydrateHostTextInstance(fiber) { |
| 12175 | var textInstance = fiber.stateNode; |