From 837140e54e19bbdb2c9ce3fa259ff5ee621fdc4e Mon Sep 17 00:00:00 2001 From: alex Date: Tue, 28 Nov 2023 18:17:48 +0000 Subject: [PATCH] main: remove queue --- src/hooks/useLiveImage.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/hooks/useLiveImage.tsx b/src/hooks/useLiveImage.tsx index 6d73045..6ddafe8 100644 --- a/src/hooks/useLiveImage.tsx +++ b/src/hooks/useLiveImage.tsx @@ -1,5 +1,4 @@ import { LiveImageShape } from '@/components/LiveImageShapeUtil' -import { Queue } from '@/utils/Queue' import { blobToDataUri } from '@/utils/blob' import * as fal from '@fal-ai/serverless-client' import { @@ -27,8 +26,6 @@ type LiveImageRequest = { type LiveImageContextType = null | ((req: LiveImageRequest) => Promise) const LiveImageContext = createContext(null) -const svgQueue = new Queue() - export function LiveImageProvider({ children, appId, @@ -186,6 +183,8 @@ export function useLiveImage(shapeId: TLShapeId) { } prevSvg = imageDataUri + // downloadDataURLAsFile(imageDataUri, 'image.png') + const random = rng(shapeId) const result = await fetchImage!({