mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-26 22:57:32 +00:00
6926591112
Typing a new Mapbox token or CARTO key and clicking that field's reset link straight away sent two requests at once: the field's save on blur, then the reset. Nothing ordered them, so when the server handled the save last, the key typed a moment ago was stored again while the field showed it cleared, on the desktop tab and on the phone screen alike. The hook both shells share now sends its writes one after another, in the order they were made (useWritesInOrder; a write that fails does not hold up the next). FE-ADMIN-DUS-032 types, clicks reset at once and makes the save the slower request; it fails without the order. FE-HOOK-WRITES-001 to 003 cover the helper.