Clear LQ callback when unsubscibe (#1214)

Signed-off-by: Denis Bykhov <80476319+BykhovDenis@users.noreply.github.com>
This commit is contained in:
Denis Bykhov 2022-03-28 15:41:03 +06:00 committed by GitHub
parent 7d452e2eb6
commit cdb303d873
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -137,6 +137,7 @@ export class LiveQuery extends TxProcessor implements Client {
})
return () => {
q.callback = () => {}
this.queries.splice(this.queries.indexOf(q), 1)
}
}