mirror of
https://github.com/zvx-echo6/navi.git
synced 2026-08-26 17:31:37 +00:00
No description
- JavaScript 96.9%
- CSS 2.9%
- HTML 0.2%
Symptom: HAR capture showed /api/geocode requests with NO lat/lon/zoom params despite map being centered on Twin Falls. Results returned out-of-state addresses (Illinois, Iowa, Arkansas). Root cause: SearchBar subscribed to mapCenter via React hook, but the value was stale at search time due to render timing. Fix: api.js searchGeocode now reads mapCenter directly from the store via useStore.getState() at call time. This is the correct pattern for non-component code. SearchBar no longer passes mapCenter as a param. |
||
|---|---|---|
| frontend | ||