Skip to content

Commit

Permalink
fix: complete useEffect params
Browse files Browse the repository at this point in the history
  • Loading branch information
KaiVandivier committed Jan 24, 2025
1 parent 5c962ea commit 06ecacc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/Root.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const Root = () => {
if (pathname === '/' && settings?.startPage) {
navigate(settings.startPage)
}
}, [settings])
}, [settings, pathname, navigate])

return (
<>
Expand Down
2 changes: 1 addition & 1 deletion src/components/shared/TimeZone.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const TimeZone = ({ period, onChange }) => {
if (timeZone && timeZone !== utcTimeZone) {
onChange((period) => ({
...period,
timeZone: system.systemInfo.serverTimeZoneId,
timeZone: timeZone,
}))
}
}, [timeZone, onChange])
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useExploreUri.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ const useExploreUri = () => {
return () => {
setIsPop(false)
}
}, [store, isPop, tab, params])
}, [store, isPop, tab, params, pathname])

return uri
}
Expand Down

0 comments on commit 06ecacc

Please sign in to comment.