fix: do not cache while watching during manual updates
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user