Skip to content

Commit 1fe81a9

Browse files
committed
add missing useEffect dep
1 parent e3bc61b commit 1fe81a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/hooks/useClientSideGitHubLastEdit.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ export const useClientSideGitHubLastEdit = (
5050
const [state, setState] = useState<LastUpdatedState>({ loading: true })
5151
const { locale } = useRouter()
5252
useEffect(() => {
53-
; (async () => {
53+
;(async () => {
5454
setState(await fetchGitHubLastEdit(relativePath, locale as Lang))
5555
})()
56-
}, [relativePath])
56+
}, [relativePath, locale])
5757
return state
5858
}

0 commit comments

Comments
 (0)