Skip to content

Commit

Permalink
Remove circular dependency in useEffect
Browse files Browse the repository at this point in the history
  • Loading branch information
andchiind committed Nov 16, 2023
1 parent 1721c3c commit c4d480e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/src/components/Contexts/AlertContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ export const AlertProvider: FC<Props> = ({ children }) => {
)
}
if (!recentFailedMissions || recentFailedMissions.length === 0) updateRecentFailedMissions()
}, [installationCode, recentFailedMissions])
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [installationCode])

// Register a signalR event handler that listens for new failed missions
useEffect(() => {
Expand Down

0 comments on commit c4d480e

Please sign in to comment.