Skip to content

Commit 4a14969

Browse files
committed
refactor: remove old bind
1 parent fbd27f2 commit 4a14969

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

src/firestore/index.ts

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -106,28 +106,6 @@ export function _useFirestoreRef(
106106
return data as _RefFirestore<unknown>
107107
}
108108

109-
// TODO: remove in stable release or before
110-
111-
/**
112-
* Binds a Firestore reference onto a Vue Ref and keep it updated.
113-
*
114-
* @deprecated use `useDocument()` and `useCollection()` instead
115-
*
116-
* @param target - target Ref to bind to
117-
* @param docOrCollectionRef - Firestore Reference to be bound
118-
* @param options
119-
*/
120-
export function bind(
121-
target: Ref,
122-
docOrCollectionRef: CollectionReference | Query | DocumentReference,
123-
options?: FirestoreOptions
124-
) {
125-
return _useFirestoreRef(docOrCollectionRef, {
126-
target,
127-
...options,
128-
}).promise
129-
}
130-
131109
const pendingPromises = new Set<Promise<any>>()
132110

133111
// TODO: should be usable in different contexts, use inject, provide

0 commit comments

Comments
 (0)