mirror of
https://github.com/Start9Labs/patch-db.git
synced 2026-03-30 03:51:56 +00:00
send message when websocket open and clear store cache on reset
This commit is contained in:
committed by
Aiden McClelland
parent
b34557e8d3
commit
a72c1c5499
@@ -50,6 +50,7 @@ export class Store<T extends { [key: string]: any }> {
|
||||
|
||||
reset (): void {
|
||||
Object.values(this.watchedNodes).forEach(node => node.complete())
|
||||
this.watchedNodes = { }
|
||||
this.stash.clear()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user