rename Map-Aircraft cache key

This commit is contained in:
PxlLoewe
2025-11-08 09:28:23 +01:00
parent 13ce99da96
commit cda2f272cc

View File

@@ -397,7 +397,7 @@ const AircraftMarker = ({ aircraft }: { aircraft: ConnectedAircraft & { Station:
export const AircraftLayer = () => { export const AircraftLayer = () => {
const { data: aircrafts } = useQuery({ const { data: aircrafts } = useQuery({
queryKey: ["aircrafts"], queryKey: ["aircrafts-map"],
queryFn: () => getConnectedAircraftsAPI(), queryFn: () => getConnectedAircraftsAPI(),
refetchInterval: 10_000, refetchInterval: 10_000,
}); });
@@ -434,8 +434,10 @@ export const AircraftLayer = () => {
} }
}, [pilotConnectionStatus, followOwnAircraft, ownAircraft, setMap, map]); }, [pilotConnectionStatus, followOwnAircraft, ownAircraft, setMap, map]);
console.debug("Hubschrauber auf Karte:", filteredAircrafts.length, filteredAircrafts); console.debug("Hubschrauber auf Karte:", {
console.debug("Daten vom Server:", aircrafts?.length, aircrafts); total: aircrafts?.length,
displayed: filteredAircrafts.length,
});
return ( return (
<> <>