fix: watch list do not update when creating

This commit is contained in:
jialin
2026-06-10 15:37:27 +08:00
committed by jialin
parent 6f96260993
commit 698090b17a
3 changed files with 11 additions and 17 deletions
+4
View File
@@ -89,6 +89,10 @@ export function useUpdateChunkedList(options: {
...cacheDataListRef.current
].slice(0, limit);
options.setDataList?.([...cacheDataListRef.current], {
createdIds: newDataList.map((item) => item.id)
});
options.onCreate?.(latestCreateList);
}