fix query close bug

This commit is contained in:
2023-06-08 06:27:27 +01:00
parent 8e6a1ecbc2
commit 2b80109e3b
6 changed files with 33 additions and 44 deletions

View File

@ -12,6 +12,7 @@ const useRequestBuilder = <TStore extends NoteStore, TSnapshot = ReturnType<TSto
if (rb) {
const q = System.Query<TStore>(type, rb);
const release = q.feed.hook(onChanged);
q.uncancel();
return () => {
q.cancel();
release();