Skip to content

Commit 325de86

Browse files
committed
makeDocumentProjection ref count 1, then 0, then 1 bug fix while doc handle still in memory (lost reactivity on mount, unmount, then remount)
1 parent b97763c commit 325de86

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/makeDocumentProjection.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ export default function makeDocumentProjection<T>(handle: DocHandle<T>) {
4040
cleanup() {
4141
handle.off("change", patch)
4242
handle.off("delete", ondelete)
43+
cache.delete(handle)
4344
},
4445
})
4546

0 commit comments

Comments
 (0)