rename Map-Aircraft cache key
This commit was merged in pull request #138.
This commit is contained in:
@@ -397,7 +397,7 @@ const AircraftMarker = ({ aircraft }: { aircraft: ConnectedAircraft & { Station:
|
||||
|
||||
export const AircraftLayer = () => {
|
||||
const { data: aircrafts } = useQuery({
|
||||
queryKey: ["aircrafts"],
|
||||
queryKey: ["aircrafts-map"],
|
||||
queryFn: () => getConnectedAircraftsAPI(),
|
||||
refetchInterval: 10_000,
|
||||
});
|
||||
@@ -434,8 +434,10 @@ export const AircraftLayer = () => {
|
||||
}
|
||||
}, [pilotConnectionStatus, followOwnAircraft, ownAircraft, setMap, map]);
|
||||
|
||||
console.debug("Hubschrauber auf Karte:", filteredAircrafts.length, filteredAircrafts);
|
||||
console.debug("Daten vom Server:", aircrafts?.length, aircrafts);
|
||||
console.debug("Hubschrauber auf Karte:", {
|
||||
total: aircrafts?.length,
|
||||
displayed: filteredAircrafts.length,
|
||||
});
|
||||
|
||||
return (
|
||||
<>
|
||||
|
||||
Reference in New Issue
Block a user