Skip to content

Commit

Permalink
refactor: useEffect의존성 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
khj0426 committed Dec 3, 2023
1 parent 2ae7d2d commit 54bdc70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/useCheckHeaderRoute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const useCheckHeaderRoute = () => {
setMyPageButtonClicked(false)
setPrevButtonClicked(false)
}
}, [location.pathname])
}, [])

return { logoButtonClicked, prevButtonClicked, myPageButtonClicked }
}
Expand Down

0 comments on commit 54bdc70

Please sign in to comment.