mirror of
https://github.com/Nezumi-2711/onedrive-vercel-index.git
synced 2026-09-22 13:38:45 +00:00
password modal and logout token clear
This commit is contained in:
+2
-2
@@ -32,9 +32,9 @@ const fetcher = (url: string, token?: string) => {
|
||||
*/
|
||||
export const useStaleSWR = (url: Key, path: string = '') => {
|
||||
const revalidationOptions = {
|
||||
revalidateOnMount: !cache.has(url),
|
||||
revalidateOnMount: !(cache.has(`arg@"${url}"@null`) || cache.has(url)),
|
||||
revalidateOnFocus: false,
|
||||
revalidateOnReconnect: false,
|
||||
revalidateOnReconnect: true,
|
||||
}
|
||||
|
||||
const token =
|
||||
|
||||
Reference in New Issue
Block a user