Skip to content

Commit e994a7a

Browse files
committed
fix: access last safe value of prop on unmount
1 parent 7cb4c28 commit e994a7a

File tree

1 file changed

+1
-1
lines changed
  • packages/svelte/src/internal/client/reactivity

1 file changed

+1
-1
lines changed

packages/svelte/src/internal/client/reactivity/props.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,9 +415,9 @@ export function prop(props, key, flags, fallback) {
415415
}
416416
untrack(() => get(current_value)); // force a synchronisation immediately
417417
}
418+
418419
return value;
419420
}
420-
421421
return get(current_value);
422422
};
423423
}

0 commit comments

Comments
 (0)