main: remove queue
This commit is contained in:
parent
131b6dd58c
commit
837140e54e
|
|
@ -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<LiveImageResult>)
|
||||
const LiveImageContext = createContext<LiveImageContextType>(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!({
|
||||
|
|
|
|||
Loading…
Reference in New Issue