Files
Nitro-V3/src
simoleo89 39fbfdd9e2 fix(inventory): derive active prefix from the fresh list, not a stale closure
The ActivePrefixUpdatedEvent handler set the active prefix via
`setActivePrefix(prev => { const found = prefixes.find(...) })`, reading the
`prefixes` state from the closure — which lags by a render and is stale/empty when
the prefix was added earlier in the same event batch, so `found` was undefined and
the active prefix fell back to a partial item missing icon/color/displayName. Move
the derivation inside the `setPrefixes` updater so it reads the freshly-mapped list.
2026-06-13 18:15:19 +02:00
..
2026-06-11 04:07:06 +03:00
2026-06-10 07:23:02 +02:00
2026-06-11 13:16:29 +02:00
2026-06-11 13:16:29 +02:00
2026-02-19 13:22:37 +01:00
🆙 Init V3
2026-01-31 09:10:52 +01:00
2026-06-05 17:21:53 +02:00
2026-06-10 07:23:02 +02:00
2026-06-06 08:42:18 +02:00