Skip to content

Commit

Permalink
fix(useFirestore): auto dispose documents (#2318)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zehir committed Oct 16, 2022
1 parent 578bc0c commit 66f56d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/firebase/useFirestore/index.ts
Expand Up @@ -96,7 +96,7 @@ export function useFirestore<T extends DocumentData>(
}
}, { immediate: true })

if (autoDispose && !isDocumentReference<T>(refOfDocRef.value)) {
if (autoDispose) {
tryOnScopeDispose(() => {
close()
})
Expand Down

0 comments on commit 66f56d2

Please sign in to comment.