Reduce memo thrash on map update

This commit is contained in:
Jack Kingsman
2026-03-15 18:07:30 -07:00
parent 226dc4f59e
commit c76f230c9f
35 changed files with 90 additions and 50 deletions
+1 -1
View File
@@ -104,7 +104,7 @@ function MapBoundsHandler({
}
export function MapView({ contacts, focusedKey }: MapViewProps) {
const sevenDaysAgo = Date.now() / 1000 - 7 * 24 * 60 * 60;
const [sevenDaysAgo] = useState(() => Date.now() / 1000 - 7 * 24 * 60 * 60);
// Filter to contacts with GPS coordinates, heard within the last 7 days.
// Always include the focused contact so "view on map" links work for older nodes.