Skip to content

Commit

Permalink
chore: delete force cache
Browse files Browse the repository at this point in the history
  • Loading branch information
gahyuun committed Apr 27, 2024
1 parent f1e6f10 commit dfdc2d4
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 10 deletions.
6 changes: 4 additions & 2 deletions app/(sub-page)/my/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,14 @@ export default function MyPage({ searchParams }: MyPageProps) {
<>
<ContentContainer className="flex">
<div className="hidden lg:w-[30%] lg:block">
<Suspense fallback={<UserInfoNavigatorSkeleton />}>
<Suspense key={'userinfo'} fallback={<UserInfoNavigatorSkeleton />}>
<UserInfoNavigator />
</Suspense>
</div>
<div className="w-full lg:w-[70%] lg:px-[20px]">
<TakenLecture />
<Suspense key={'taken-lecture'} fallback={<p>...loading</p>}>
<TakenLecture />
</Suspense>
</div>
</ContentContainer>
<Drawer drawerKey={DIALOG_KEY.LECTURE_SEARCH}>
Expand Down
1 change: 0 additions & 1 deletion app/business/lecture/taken-lecture.query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ export interface TakenLectures {
export const fetchTakenLectures = async (): Promise<TakenLectures> => {
const response = await fetch(API_PATH.takenLectures, {
next: { tags: [TAG.GET_TAKEN_LECTURES] },
cache: 'force-cache',
});
const data = await response.json();
return data;
Expand Down
1 change: 0 additions & 1 deletion app/business/user/user.query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ export async function getUserInfo(): Promise<UserInfoResponse> {
headers: {
Authorization: `Bearer ${cookies().get('accessToken')?.value}`,
},
cache: 'force-cache',
});

const result = await response.json();
Expand Down
5 changes: 4 additions & 1 deletion app/ui/lecture/lecture-search/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ export default function LectureSearch({ searchParams }: LectureSearchProps) {
<div className="w-[800px] mx-auto my-7 flex flex-col gap-10 sm:gap-6">
<LectureSearchBar />
{isSearchable ? (
<Suspense fallback={<LectureSearchResultContainerSpinner />}>
<Suspense
key={`${searchParams.keyword}${searchParams.type}`}
fallback={<LectureSearchResultContainerSpinner />}
>
<LectureSearchResultContainer keyword={searchParams.keyword as string} type={searchParams.type as string} />
</Suspense>
) : (
Expand Down
10 changes: 5 additions & 5 deletions next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ const nextConfig = {
allowedOrigins: ['localhost:3000', 'ideal-waddle-5xwrj5ppjvxhvq7x-3000.app.github.dev'],
},
},
// logging: {
// fetches: {
// fullUrl: true,
// },
// },
logging: {
fetches: {
fullUrl: true,
},
},
};

export default nextConfig;

0 comments on commit dfdc2d4

Please sign in to comment.