aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/app/routes/home.tsx
diff options
context:
space:
mode:
authorAriel Costas Guerrero <ariel@costas.dev>2026-03-13 10:09:30 +0100
committerAriel Costas Guerrero <ariel@costas.dev>2026-03-13 10:09:30 +0100
commit56c2e739d95dd7b64a7332e2320579925c1751a9 (patch)
tree256127c61846be48b579a2f3e461d3d89feb4adc /src/frontend/app/routes/home.tsx
parentb3f5bfad9c2d1ac92debb389fd7a774a6cdb5109 (diff)
Refactor geolocation settings across components; improve accuracy and timeout configurations
Diffstat (limited to 'src/frontend/app/routes/home.tsx')
-rw-r--r--src/frontend/app/routes/home.tsx5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/frontend/app/routes/home.tsx b/src/frontend/app/routes/home.tsx
index 0229ad5..45d7ddf 100644
--- a/src/frontend/app/routes/home.tsx
+++ b/src/frontend/app/routes/home.tsx
@@ -47,7 +47,8 @@ export default function StopList() {
},
{
enableHighAccuracy: false,
- maximumAge: 5 * 60 * 1000,
+ maximumAge: Infinity,
+ timeout: 10000,
}
);
}, []);
@@ -317,7 +318,7 @@ export default function StopList() {
<StopItem
key={stop.stopId}
stop={stop}
- showArrivals={index < 3}
+ showArrivals={index < 5}
/>
))}
</ul>