mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-26 01:06:23 +02:00
feat: Invalidate logs summary and enable refetch on mount for fresh processing tasks display
This commit is contained in:
parent
35904ba0c8
commit
3ec2d46051
2 changed files with 6 additions and 0 deletions
|
|
@ -49,6 +49,10 @@ export const uploadDocumentMutationAtom = atomWithMutation((get) => {
|
|||
|
||||
onSuccess: () => {
|
||||
toast.success("Files uploaded for processing");
|
||||
// Invalidate logs summary to show new processing tasks immediately on documents page
|
||||
queryClient.invalidateQueries({
|
||||
queryKey: cacheKeys.logs.summary(searchSpaceId ?? undefined),
|
||||
});
|
||||
},
|
||||
};
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue