Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
39bytes committed Dec 5, 2023
1 parent 501927a commit 1b5329d
Show file tree
Hide file tree
Showing 5 changed files with 302 additions and 296 deletions.
20 changes: 13 additions & 7 deletions src/renderer/context/socket.context.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,12 @@ export const SocketContextProvider = ({

const handleStateChange =
(state: keyof States) =>
(value: string | number | Record<string, string> | IServerStatus) => {
setStates((prev) => ({
...prev,
[state]: value,
}));
};
(value: string | number | Record<string, string> | IServerStatus) => {
setStates((prev) => ({
...prev,
[state]: value,
}));
};

useEffect(() => {
if (!socket) {
Expand Down Expand Up @@ -97,7 +97,13 @@ export const SocketContextProvider = ({
});
setSocket(ws);
}
}, [fetchManifest, fetchMetadata, hardwareRefetch, socket, setManifestChanged]);
}, [
fetchManifest,
fetchMetadata,
hardwareRefetch,
socket,
setManifestChanged,
]);
const values = useMemo(
() => ({
states: {
Expand Down
Loading

0 comments on commit 1b5329d

Please sign in to comment.