mirror of
https://github.com/immich-app/immich.git
synced 2025-12-19 17:23:21 +03:00
chore: use writable derived in more places (#17248)
chore(web): use writable derived in more places
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user