Files
vibe-kanban/frontend
Louis Knight-Webb b87fb13e87 Dev server starting state (#1985)
**Changes:**
1. Added `useState` and `useEffect` to imports
2. Added `pendingStart` state to track when mutation has started but no running process exists yet
3. Added `useEffect` that clears `pendingStart` when `runningDevServers.length > 0`
4. Added `onMutate` callback to set `pendingStart = true` when mutation starts
5. Updated `onError` to clear `pendingStart` on failure
6. Updated `isStarting` return value to `startMutation.isPending || pendingStart`

**How it works:**
- When the user clicks "Start", `onMutate` fires immediately and sets `pendingStart = true`
- This makes `isStarting = true`, showing the "starting" state in the UI
- The `pendingStart` state persists even after the API request completes
- Only when a running dev server process appears in the data (via the `useEffect`), `pendingStart` is cleared
- If the mutation fails, `onError` clears `pendingStart` immediately

This ensures the "starting" state is visible until the dev server process actually appears, rather than just during the brief API request time.
2026-01-12 22:58:14 +00:00
..
2026-01-08 22:14:38 +00:00
2026-01-12 22:58:14 +00:00
2026-01-08 22:14:38 +00:00
2026-01-08 22:14:38 +00:00
2026-01-08 22:14:38 +00:00
2026-01-08 22:14:38 +00:00
2026-01-12 21:53:09 +00:00
2026-01-08 22:14:38 +00:00
2026-01-08 22:14:38 +00:00