pull/10891/head
Rich Harris 2 years ago
parent 8285757139
commit a210ea5693

@ -1,5 +1,3 @@
// Handle hydration
import { schedule_task } from './task.js'; import { schedule_task } from './task.js';
import { empty } from './operations.js'; import { empty } from './operations.js';

@ -140,6 +140,7 @@ export function mount(component, options) {
*/ */
export function hydrate(component, options) { export function hydrate(component, options) {
init_operations(); init_operations();
const container = options.target; const container = options.target;
const first_child = /** @type {ChildNode} */ (container.firstChild); const first_child = /** @type {ChildNode} */ (container.firstChild);
const previous_hydration_fragment = current_hydration_fragment; const previous_hydration_fragment = current_hydration_fragment;

Loading…
Cancel
Save