Trek_CN/client
Luca 41bfcf2f76
fix: stale closure in updateRouteForDay causes route to disappear on place click
useCallback captured tripStore at creation time (dep: [routeCalcEnabled]).
If assignments were empty on first render (trip still loading), the callback
would permanently see empty assignments and call setRoute(null) whenever
invoked — e.g. when clicking a place triggers onSelectDay → updateRouteForDay.

Fix: store tripStore in a ref updated on every render so the callback always
reads the latest assignments without needing to be recreated.
2026-04-01 18:29:40 +02:00
..
public v2.6.2 — TREK Rebrand, OSM Enrichment, File Management, Hotel Bookings & Bug Fixes 2026-03-28 16:38:08 +01:00
scripts Add PWA support for iOS home screen install 2026-03-21 22:21:23 +01:00
src fix: stale closure in updateRouteForDay causes route to disappear on place click 2026-04-01 18:29:40 +02:00
index.html fix: harden PWA caching and client-side auth security 2026-03-31 00:33:58 +00:00
package-lock.json feat: adds better gpx track views 2026-03-31 10:29:49 +02:00
package.json chore: bump version to 2.7.1 2026-03-30 21:25:35 +02:00
postcss.config.js Initial commit — NOMAD (Navigation Organizer for Maps, Activities & Destinations) 2026-03-18 23:58:08 +01:00
tailwind.config.js Initial commit — NOMAD (Navigation Organizer for Maps, Activities & Destinations) 2026-03-18 23:58:08 +01:00
tsconfig.json refactoring: TypeScript migration, security fixes, 2026-03-27 18:40:18 +01:00
vite.config.js fix: harden PWA caching and client-side auth security 2026-03-31 00:33:58 +00:00