Skip to content

Commit

Permalink
Update dependency array in useCallback.
Browse files Browse the repository at this point in the history
  • Loading branch information
junhaoliao committed Sep 30, 2024
1 parent e8ce67a commit 0df2470
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion new-log-viewer/src/contexts/StateContextProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ const StateContextProvider = ({children}: StateContextProviderProps) => {
console.error(`Unexpected ev.data: ${JSON.stringify(ev.data)}`);
break;
}
}, []);
}, [postStatus]);

const exportLogs = useCallback(() => {
if (null === mainWorkerRef.current) {
Expand Down

0 comments on commit 0df2470

Please sign in to comment.