mirror of
https://github.com/immich-app/immich.git
synced 2025-12-21 01:11:16 +03:00
chore: use writable derived in more places (#17248)
chore(web): use writable derived in more places
This commit is contained in:
@@ -11,10 +11,7 @@
|
||||
|
||||
let { content = '', class: className = '', onContentUpdate = () => null, placeholder = '' }: Props = $props();
|
||||
|
||||
let newContent = $state(content);
|
||||
$effect(() => {
|
||||
newContent = content;
|
||||
});
|
||||
let newContent = $derived(content);
|
||||
|
||||
const updateContent = () => {
|
||||
if (content === newContent) {
|
||||
|
||||
Reference in New Issue
Block a user