Skip to content

Commit 3854cb7

Browse files
committed
fix: ensure hmr block effects are transparent for transitions
1 parent 47a073e commit 3854cb7

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.changeset/happy-moles-live.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'svelte': patch
3+
---
4+
5+
fix: ensure hmr block effects are transparent for transitions

packages/svelte/src/internal/client/dev/hmr.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/** @import { Source, Effect } from '#client' */
2+
import { EFFECT_TRANSPARENT } from '../constants.js';
23
import { block, branch, destroy_effect } from '../reactivity/effects.js';
34
import { set_should_intro } from '../render.js';
45
import { get } from '../runtime.js';
@@ -44,7 +45,7 @@ export function hmr(source) {
4445

4546
if (ran) set_should_intro(true);
4647
});
47-
});
48+
}, EFFECT_TRANSPARENT);
4849

4950
ran = true;
5051

0 commit comments

Comments
 (0)