Skip to content

Commit

Permalink
chore: 무한 업데이트 일으키는 의존성 배열 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
whitedev7773 committed Nov 8, 2024
1 parent 8ebb235 commit d171a42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/display/HistoryPreview.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ export const HistoryPreview = () => {
const keys = Object.keys(displayData).reverse();
setDisplayYear(keys[0]);
setDisplayKey(keys.slice(0, 4));
}, [data, displayData, isError, isLoading]);
}, [data, isError, isLoading]);

if (isLoading) {
return <></>;
Expand Down

0 comments on commit d171a42

Please sign in to comment.