mirror of
https://github.com/Nezumi-2711/onedrive-vercel-index.git
synced 2026-09-22 13:38:45 +00:00
add initial value to useStaleSWR
This commit is contained in:
+1
-1
@@ -27,7 +27,7 @@ const fetcher = (url: string, token: string) =>
|
||||
* @param url request url
|
||||
* @returns useSWR instance
|
||||
*/
|
||||
export const useStaleSWR = (url: Key, path: string) => {
|
||||
export const useStaleSWR = (url: Key, path: string = '') => {
|
||||
const revalidationOptions = {
|
||||
revalidateOnMount: !cache.has(url),
|
||||
revalidateOnFocus: false,
|
||||
|
||||
Reference in New Issue
Block a user