Refactor AddEventModal state and improve useRouteQuery hook

Initialize AddEventModal state from editEvent props directly, removing
the useEffect that synchronized state. Add AbortController to
useRouteQuery to cancel in-flight requests when dependencies change or
component unmounts.

Add @testing-library/user-event and fix related tests to handle async
user events. Polyfill localStorage in Vitest setup for jsdom environment.
This commit is contained in:
2026-05-19 13:12:33 +02:00
parent 44aaa32296
commit 0493fcc939
9 changed files with 87 additions and 50 deletions
+1 -1
View File
@@ -20,7 +20,7 @@
"@react-navigation/native-stack": "^7.14.14",
"@timetoleave/api-client": "*",
"@timetoleave/core": "*",
"expo": "~54.0.33",
"expo": "~54.0.34",
"expo-calendar": "~15.0.8",
"expo-dev-client": "~6.0.21",
"expo-location": "~19.0.8",