Fixed pilot admin meesage event handler not removed onEffect
This commit is contained in:
@@ -96,6 +96,7 @@ export function QueryProvider({ children }: { children: ReactNode }) {
|
||||
dispatchSocket.off("pilots-update", invalidateConnectedUsers);
|
||||
dispatchSocket.off("update-connectedAircraft", invalidateConenctedAircrafts);
|
||||
dispatchSocket.off("notification", handleNotification);
|
||||
pilotSocket.off("notification", handleNotification);
|
||||
};
|
||||
}, [queryClient, mapStore]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user