Department speed dial hung on Loading forever

Fixkamo-internal
Shipped
August 13, 2026 at 5:03 AM UTC
Author
kamo
Commit
49fa022

The loader effect listed departmentsState in its deps and set it to 'loading' on entry, so React tore that effect instance down immediately, the cleanup flipped cancelled, and the reply landed on a dead closure. The guard also read the same state, so nothing ever started a second attempt — the tab sat on 'Loading departments…' for good. Track whether a load has been started in a ref and keep it out of the deps, so setting state no longer cancels the request that set it.

All changes

Like what you see shipping?

Every one of these updates lands in your workspace automatically. Start free and watch it grow week after week.

Start Free ForeverView Pricing