Fixed pilot admin meesage event handler not removed onEffect

This commit is contained in:
PxlLoewe
2025-06-19 11:03:55 -07:00
parent 72c6d53c05
commit e40cf0ffac

View File

@@ -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]);