fix: do not cache while watching during manual updates

This commit is contained in:
jialin
2026-02-13 19:32:59 +08:00
parent 88aafbaf7b
commit 511297ed11
8 changed files with 28 additions and 14 deletions
@@ -36,6 +36,12 @@ export default function useAddWorkerMessage() {
newItemsRef.current = newItemsRef.current.concat(newItems);
showAddWorkerMessage();
}
},
onUpdate: (newItems: any) => {
if (triggerAtRef.current) {
newItemsRef.current = newItemsRef.current.concat(newItems);
showAddWorkerMessage();
}
}
});