feat: set staleTime to Infinity in TextShareResult component for persistent query data

This commit is contained in:
keven1024
2025-07-01 14:26:24 +08:00
parent a0cff53901
commit 695395ba6a

View File

@@ -21,6 +21,7 @@ const emit = defineEmits<{
const { createTextShare } = useMyAppShare()
const { data } = useQuery({
queryKey: ['create-share', props?.data?.text],
staleTime: Infinity,
queryFn: async () => {
const { config, text } = props?.data || {}
const data = await createTextShare({