diff --git a/package-lock.json b/package-lock.json index 5beb3548..c7fd4911 100644 --- a/package-lock.json +++ b/package-lock.json @@ -28349,9 +28349,9 @@ } }, "node_modules/swr": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/swr/-/swr-2.2.1.tgz", - "integrity": "sha512-KJVA7dGtOBeZ+2sycEuzUfVIP5lZ/cd0xjevv85n2YG0x1uHJQicjAtahVZL6xG3+TjqhbBqimwYzVo3saeVXQ==", + "version": "2.2.4", + "resolved": "https://registry.npmjs.org/swr/-/swr-2.2.4.tgz", + "integrity": "sha512-njiZ/4RiIhoOlAaLYDqwz5qH/KZXVilRLvomrx83HjzCWTfa+InyfAjv05PSFxnmLzZkNO9ZfvgoqzAaEI4sGQ==", "dependencies": { "client-only": "^0.0.1", "use-sync-external-store": "^1.2.0" diff --git a/src/swr/client/auth.ts b/src/swr/client/auth.ts index c71a3a6a..b5b205a8 100644 --- a/src/swr/client/auth.ts +++ b/src/swr/client/auth.ts @@ -91,7 +91,7 @@ const fetchMe = async ({ authId }: { authId: number }) => { export const useProfile = () => { const { data: authId } = useAuth(); const swrKey = authId ? { key: 'useProfile', authId } : null; - return useSWR(swrKey, fetchMe); + return useSWR(swrKey, fetchMe, undefined); }; const fetchPreSignUp = async ( diff --git a/src/swr/client/invitations.ts b/src/swr/client/invitations.ts index 0853f93a..3745ef0b 100644 --- a/src/swr/client/invitations.ts +++ b/src/swr/client/invitations.ts @@ -54,7 +54,7 @@ const fetcher = async ({ export const useInvitations = () => { const { data: authId } = useAuth(); const swrKey = authId ? { key: 'useInvitations', authId } : null; - return useSWR(swrKey, fetcher); + return useSWR(swrKey, fetcher, undefined); }; type Key = { key: string; authId: number };