chore: use writable derived in more places (#17248)

chore(web): use writable derived in more places
This commit is contained in:
Ben McCann
2025-03-31 07:15:52 -07:00
committed by GitHub
parent d613f15606
commit b25914c2a5
7 changed files with 14 additions and 37 deletions

View File

@@ -16,10 +16,7 @@
// Updating `value` directly causes the date input to reset itself or
// interfere with user changes.
let updatedValue = $state<string>();
$effect(() => {
updatedValue = value;
});
let updatedValue = $derived(value);
</script>
<input