Skip to content

Commit

Permalink
chore: 回答のコメント更新を 1秒ごとに行うように
Browse files Browse the repository at this point in the history
  • Loading branch information
rito528 committed Aug 14, 2024
1 parent eefdba8 commit 5296885
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/(authed)/admin/answer/[answerId]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import type { Either } from 'fp-ts/lib/Either';
const Home = ({ params }: { params: { answerId: number } }) => {
const { data: answers, isLoading: isAnswersLoading } = useSWR<
Either<ErrorResponse, GetAnswerResponse>
>(`/api/answers/${params.answerId}`);
>(`/api/answers/${params.answerId}`, { refreshInterval: 1000 });

const { data: formQuestions, isLoading: isFormQuestionsLoading } = useSWR<
Either<ErrorResponse, GetQuestionsResponse>
Expand Down

0 comments on commit 5296885

Please sign in to comment.