Skip to content

Commit

Permalink
finished SocetContext Modularization, moved functions from SocketCont…
Browse files Browse the repository at this point in the history
…ext into SocketService then called in context
  • Loading branch information
KalebE36 committed Oct 2, 2024
1 parent 008efa1 commit c51a166
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client/app/contexts/SocketContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ export const SocketProvider = ({ children }: { children: React.ReactNode }) => {
}, [locationContext?.latitude, locationContext?.longitude, socket]);

return (
<SocketContext.Provider value={socket}>{children}</SocketContext.Provider>
<SocketContext.Provider value={socket}>
{children}
</SocketContext.Provider>
);
};

0 comments on commit c51a166

Please sign in to comment.