In dev (Vite), runKomootBulkImport was fire-and-forgotten with .catch(()=>{})
which silently swallowed all errors, leaving the batch frozen at "pending".
Fix:
- Pre-mark the batch as "running" before firing the detached promise so the
UI immediately transitions out of the pending state
- On failure, update the batch to "failed" with the error message instead of
swallowing it, so the UI shows the error and offers a retry
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
||
|---|---|---|
| .. | ||
| components | ||
| hooks | ||
| jobs | ||
| lib | ||
| routes | ||
| entry.client.tsx | ||
| entry.server.tsx | ||
| root.tsx | ||
| routes.ts | ||