Skip to content

Commit

Permalink
Update: 풀링 1초로 임시 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
extinctmule committed Sep 10, 2024
1 parent d01e8cc commit f0a6110
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/StockItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const StockItem = ({ productNumber, defaultName, watchListId, industry, isWatchT
// 풀링: 5초마다 데이터를 가져옴
const intervalId = setInterval(() => {
fetchStockData();
}, 5000);
}, 1000);

return () => clearInterval(intervalId); // 컴포넌트 언마운트 시 정리
}, [productNumber, defaultName]);
Expand Down

0 comments on commit f0a6110

Please sign in to comment.