Skip to content

Commit

Permalink
chore: meetings fetching 하는 코드 모두 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
Doeunnkimm committed Aug 25, 2024
1 parent 3453da2 commit 3ccdf5c
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 52 deletions.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { dehydrate, HydrationBoundary, QueryClient } from '@tanstack/react-query';

import { getAnswersPrefetch } from '@/result/common/apis/queries/useGetAnswers';
import { getMeetingsPrefetch } from '@/result/common/apis/queries/useGetMeetings';
import { BaseParams } from '@/result/common/types/BaseParams';

import { AnswerListContainer } from '../containers/AnswerListContainer';
Expand All @@ -20,8 +19,6 @@ const getServerSideProps = async (params: BaseParams) => {
const queryClient = new QueryClient();

try {
await getMeetingsPrefetch({ queryClient });

await getAnswersPrefetch({
queryClient,
meetingId: Number(params.meetingId),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { dehydrate, HydrationBoundary, QueryClient } from '@tanstack/react-query';

import { getMeetingsPrefetch } from '@/result/common/apis/queries/useGetMeetings';
import { getMostSelectedPrefetch } from '@/result/common/apis/queries/useGetMostSelected';
import { BaseParams } from '@/result/common/types/BaseParams';

Expand All @@ -20,7 +19,6 @@ const getServerSideProps = async (params: BaseParams) => {
const queryClient = new QueryClient();

try {
await getMeetingsPrefetch({ queryClient });
await getMostSelectedPrefetch({
queryClient,
meetingId: Number(params.meetingId),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { dehydrate, HydrationBoundary, QueryClient } from '@tanstack/react-query';

import { getMeetingsPrefetch } from '@/result/common/apis/queries/useGetMeetings';
import { getSameSelectedPrefetch } from '@/result/common/apis/queries/useGetSameSelected';
import { BaseParams } from '@/result/common/types/BaseParams';

Expand All @@ -20,7 +19,6 @@ const getServerSideProps = async (params: BaseParams) => {
const queryClient = new QueryClient();

try {
await getMeetingsPrefetch({ queryClient });
await getSameSelectedPrefetch({
queryClient,
meetingId: Number(params.meetingId),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { dehydrate, HydrationBoundary, QueryClient } from '@tanstack/react-query

import { getCommentsPrefetch } from '@/result/common/apis/queries/useGetComments';
import { getDetailedQuestionDataPrefetch } from '@/result/common/apis/queries/useGetDetailedQuestionData';
import { getMeetingsPrefetch } from '@/result/common/apis/queries/useGetMeetings';
import { getMostSelectedPrefetch } from '@/result/common/apis/queries/useGetMostSelected';
import { getSameSelectedPrefetch } from '@/result/common/apis/queries/useGetSameSelected';
import { BaseLayout } from '@/result/common/components';
Expand All @@ -28,10 +27,7 @@ const getServerSideProps = async (params: BaseParams) => {
const queryClient = new QueryClient();

try {
await getMeetingsPrefetch({ queryClient });

const prefetchParams = { queryClient, meetingId: Number(params.meetingId), questionId: Number(params.questionId) };

await Promise.all([
getMostSelectedPrefetch(prefetchParams),
getSameSelectedPrefetch(prefetchParams),
Expand Down

0 comments on commit 3ccdf5c

Please sign in to comment.