@@ -129,7 +129,6 @@ export const AppProvider = ({ children }: { children: ReactNode }) => {
129129 fetchNotifications ( { auth, settings } ) ;
130130 } , Constants . FETCH_INTERVAL ) ;
131131
132- // biome-ignore lint/correctness/useExhaustiveDependencies: We need to update tray title when settings or notifications changes.
133132 useEffect ( ( ) => {
134133 const count = getNotificationCount ( notifications ) ;
135134
@@ -227,37 +226,37 @@ export const AppProvider = ({ children }: { children: ReactNode }) => {
227226
228227 const fetchNotificationsWithAccounts = useCallback (
229228 async ( ) => await fetchNotifications ( { auth, settings } ) ,
230- [ auth , settings , notifications ] ,
229+ [ auth , settings , fetchNotifications ] ,
231230 ) ;
232231
233232 const markNotificationReadWithAccounts = useCallback (
234233 async ( notification : Notification ) =>
235234 await markNotificationRead ( { auth, settings } , notification ) ,
236- [ auth , notifications ] ,
235+ [ auth , settings , markNotificationRead ] ,
237236 ) ;
238237
239238 const markNotificationDoneWithAccounts = useCallback (
240239 async ( notification : Notification ) =>
241240 await markNotificationDone ( { auth, settings } , notification ) ,
242- [ auth , notifications ] ,
241+ [ auth , settings , markNotificationDone ] ,
243242 ) ;
244243
245244 const unsubscribeNotificationWithAccounts = useCallback (
246245 async ( notification : Notification ) =>
247246 await unsubscribeNotification ( { auth, settings } , notification ) ,
248- [ auth , notifications ] ,
247+ [ auth , settings , unsubscribeNotification ] ,
249248 ) ;
250249
251250 const markRepoNotificationsReadWithAccounts = useCallback (
252251 async ( notification : Notification ) =>
253252 await markRepoNotificationsRead ( { auth, settings } , notification ) ,
254- [ auth , notifications ] ,
253+ [ auth , settings , markRepoNotificationsRead ] ,
255254 ) ;
256255
257256 const markRepoNotificationsDoneWithAccounts = useCallback (
258257 async ( notification : Notification ) =>
259258 await markRepoNotificationsDone ( { auth, settings } , notification ) ,
260- [ auth , notifications ] ,
259+ [ auth , settings , markRepoNotificationsDone ] ,
261260 ) ;
262261
263262 return (
0 commit comments