mirror of
https://github.com/Nezumi-2711/onedrive-vercel-index.git
synced 2026-09-22 13:38:45 +00:00
colored toast and other minor tweaks
This commit is contained in:
+1
-1
@@ -22,7 +22,7 @@ const fetcher = (url: string) => axios.get(url).then(res => res.data)
|
||||
*/
|
||||
export const useStaleSWR = (dataKey: Key) => {
|
||||
const revalidationOptions = {
|
||||
revalidateOnMount: !cache.has(dataKey), //here we refer to the SWR cache
|
||||
revalidateOnMount: !cache.has(dataKey),
|
||||
revalidateOnFocus: false,
|
||||
revalidateOnReconnect: false,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user