Department speed dial hung on Loading forever

Fixkamo-internal
Ya
13 Agosti 2026, 05:03 UTC
Mwandishi
kamo
Ahadi ya
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.

Mabadiliko yote

Je, unaona nini kuhusu usafiri?

Kila moja ya hizi updates ardhi katika nafasi yako ya kazi moja kwa moja. Kuanza bure na kuangalia kukua wiki baada ya wiki.

Kuwa Huru MileleMtazamo wa bei