Release Archive Tools 0.2.0
Verify / verify (push) Canceled after 0s

This commit is contained in:
2026-09-02 09:34:59 +02:00
parent a49ec6b17a
commit fe578f46bd
47 changed files with 3337 additions and 253 deletions
+4 -3
View File
@@ -1,3 +1,4 @@
import { createObjectUrlLease } from "@add-ideas/toolbox-helpers";
import { useEffect, useRef } from "react";
import type { ArchiveEntryRecord, PreviewResult } from "../../archive/types";
@@ -16,11 +17,11 @@ export function PreviewPane({
useEffect(() => {
const node = image.current;
if (!node || preview?.kind !== "image") return;
const url = URL.createObjectURL(preview.blob);
node.src = url;
const lease = createObjectUrlLease(preview.blob);
node.src = lease.url;
return () => {
node.removeAttribute("src");
URL.revokeObjectURL(url);
lease.revoke();
};
}, [preview]);
return (