Skip to content

Commit 5935c6d

Browse files
committed
refactor: promise can be a shallow Ref
1 parent 65eddd4 commit 5935c6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/storage/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export function useStorageFileUrl(
5656
url.value,
5757
useFirebaseApp()
5858
) as string
59-
const promise = ref<Promise<string | null>>(Promise.resolve(null))
59+
const promise = shallowRef<Promise<string | null>>(Promise.resolve(null))
6060
// TODO: pending and error states?
6161
let removePendingPromise = noop
6262

0 commit comments

Comments
 (0)