@sveltejs/kit 2.8.4 → 2.8.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sveltejs/kit",
3
- "version": "2.8.4",
3
+ "version": "2.8.5",
4
4
  "description": "SvelteKit is the fastest way to build Svelte apps",
5
5
  "keywords": [
6
6
  "framework",
@@ -2358,6 +2358,7 @@ async function _hydrate(
2358
2358
 
2359
2359
  /** @type {import('./types.js').NavigationFinished | undefined} */
2360
2360
  let result;
2361
+ let hydrate = true;
2361
2362
 
2362
2363
  try {
2363
2364
  const branch_promises = node_ids.map(async (n, i) => {
@@ -2422,13 +2423,16 @@ async function _hydrate(
2422
2423
  url,
2423
2424
  route
2424
2425
  });
2426
+
2427
+ target.textContent = '';
2428
+ hydrate = false;
2425
2429
  }
2426
2430
 
2427
2431
  if (result.props.page) {
2428
2432
  result.props.page.state = {};
2429
2433
  }
2430
2434
 
2431
- initialize(result, target, true);
2435
+ initialize(result, target, hydrate);
2432
2436
  }
2433
2437
 
2434
2438
  /**
package/src/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  // generated during release, do not modify
2
2
 
3
3
  /** @type {string} */
4
- export const VERSION = '2.8.4';
4
+ export const VERSION = '2.8.5';