mirror of
https://github.com/langgenius/dify.git
synced 2026-04-05 19:39:25 +08:00
fix: correct useEducationStatus query cache configuration (#30416)
This commit is contained in:
@@ -59,7 +59,7 @@ export const useEducationStatus = (disable?: boolean) => {
|
||||
return get<{ is_student: boolean, allow_refresh: boolean, expire_at: number | null }>('/account/education')
|
||||
},
|
||||
retry: false,
|
||||
gcTime: 0, // No cache. Prevent switch account caused stale data
|
||||
staleTime: 0, // Data expires immediately, ensuring fresh data on refetch
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user