Skip to content

Commit

Permalink
Merge pull request #145 from cuculus-dev/renovate/swr-2.x-lockfile
Browse files Browse the repository at this point in the history
fix(deps): update dependency swr to v2.2.4
  • Loading branch information
takecchi authored Dec 21, 2023
2 parents 24b24de + b2080bd commit 6632154
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/swr/client/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<User | undefined, Error>(swrKey, fetchMe);
return useSWR<User | undefined, Error>(swrKey, fetchMe, undefined);
};

const fetchPreSignUp = async (
Expand Down
2 changes: 1 addition & 1 deletion src/swr/client/invitations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const fetcher = async ({
export const useInvitations = () => {
const { data: authId } = useAuth();
const swrKey = authId ? { key: 'useInvitations', authId } : null;
return useSWR<UserInvitations | undefined, Error>(swrKey, fetcher);
return useSWR<UserInvitations | undefined, Error>(swrKey, fetcher, undefined);
};

type Key = { key: string; authId: number };
Expand Down

0 comments on commit 6632154

Please sign in to comment.