refactor: enhance data invalidation

This commit is contained in:
maxid
2025-12-21 16:54:32 +01:00
parent 7a44463982
commit bf84cc0a06
9 changed files with 29 additions and 33 deletions

View File

@@ -13,6 +13,7 @@
import { toast } from 'svelte-sonner';
import DeleteTorrentDialog from '$lib/components/delete-torrent-dialog.svelte';
import EditTorrentDialog from '$lib/components/edit-torrent-dialog.svelte';
import { invalidateAll } from '$app/navigation';
let {
torrents,
isShow = true
@@ -42,6 +43,7 @@
console.log(`Successfully retried download for torrent ${torrent.torrent_title}`);
toast.success('Trying to download torrent...');
}
await invalidateAll();
}
</script>