Skip to content

Commit

Permalink
[#116] fix - 찜리스트, 펀딩내역 리스트 한 번만 re-rendring 되도록 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
OMEGA-Y committed Jan 23, 2021
1 parent 204fb30 commit b809791
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/hooks/useHistory.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function useHistory() {
getHistoryAPI().then(result => {
setHistoryList(result.data);
});
}, [historyList]);
}, []);

return historyList;
}
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useJjim.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function useJjim() {
getJjimListAPI().then(result => {
setJjimList(result.data);
});
}, [jjimList]);
}, []);

function onRemove(jjim_id) {
setJjimList(jjimList.filter(jjim => jjim.jjim_id !== jjim_id));
Expand Down

0 comments on commit b809791

Please sign in to comment.