Skip to content

Commit

Permalink
refactor: staleTime 적용
Browse files Browse the repository at this point in the history
  • Loading branch information
smb0123 committed Sep 18, 2024
1 parent e2d85e0 commit b3e062f
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,11 @@ const KanbanColumnDetailCard = ({
data: kanbanDataArray,
isError,
isLoading,
} = useQuery<KanbanColumnData[]>(["kanbanDataArray", generation], () =>
getAllKanbanData(navbarId, generation)
);
} = useQuery<KanbanColumnData[]>({
queryKey: ["kanbanDataArray", generation],
queryFn: () => getAllKanbanData(navbarId, generation),
staleTime: 3000,
});

if (!kanbanDataArray || isLoading) {
return <div>로딩중...</div>;
Expand Down

0 comments on commit b3e062f

Please sign in to comment.