Skip to content

Commit bc16e06

Browse files
committed
chore: remove unused code
1 parent 40aa4c9 commit bc16e06

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/index.js

+2-5
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ function bindDocument ({
4242
// TODO warning check if key exists?
4343
const boundRefs = Object.create(null)
4444

45-
const unbind = document.onSnapshot((doc) => {
45+
return document.onSnapshot(doc => {
4646
// TODO test doc.exist
4747
// console.log('doc data', doc)
4848
const [data, refs] = extractRefs(createSnapshot(doc))
@@ -60,10 +60,7 @@ function bindDocument ({
6060
console.log('onSnapshot ERR' ,err)
6161
})
6262

63-
return () => {
64-
// TODO unbind all from boundRefs
65-
return unbind()
66-
}
63+
// TODO return a custom unbind function that unbind all refs
6764
}
6865

6966
function bind ({ vm, key, ref }) {

0 commit comments

Comments
 (0)