Skip to content

Commit

Permalink
fix: 공유 링크 카운트 업데이트 로직을 비동기로 진행
Browse files Browse the repository at this point in the history
  • Loading branch information
nim-od committed Aug 20, 2024
1 parent 0c46ae2 commit 0b1afa0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/user/src/routes/loader/share-redirect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { queryClient } from 'src/libs/query/index.tsx';
const shareRedirectLoader: LoaderFunction = async ({ params }) => {
const { id } = params;

queryClient.fetchQuery(clickCountQueryOptions(id));
await queryClient.prefetchQuery(clickCountQueryOptions(id));

redirect(RoutePaths.Home);
};
Expand Down

0 comments on commit 0b1afa0

Please sign in to comment.