Skip to content

Commit 98a532f

Browse files
clinuxrulzchee
authored andcommitted
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 98a532f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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)