mirror of
https://github.com/keven1024/015.git
synced 2026-05-26 07:08:02 +00:00
fix(FileShareResult): set staleTime to Infinity for create-share query to prevent data refetching
This commit is contained in:
@@ -21,6 +21,7 @@ const { t } = useI18n()
|
||||
const { createFileShare } = useMyAppShare()
|
||||
const { data } = useQuery({
|
||||
queryKey: ['create-share', ...props?.data?.files?.map((item) => item.id)],
|
||||
staleTime: Infinity,
|
||||
queryFn: async () => {
|
||||
const { files, config } = props?.data || {}
|
||||
const data = await createFileShare({
|
||||
|
||||
Reference in New Issue
Block a user