Skip to content

Commit 5c99be3

Browse files
committed
merge main
2 parents f405596 + 0e7e873 commit 5c99be3

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/new-candles-marry.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+
chore: simplify internal component `pop()`

packages/svelte/src/internal/client/context.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ export function pop(component) {
184184
component_context = context.p;
185185

186186
if (DEV) {
187-
dev_current_component_function = context.p?.function ?? null;
187+
dev_current_component_function = component_context?.function ?? null;
188188
}
189189

190190
return component ?? /** @type {T} */ ({});

0 commit comments

Comments
 (0)