Derived UI state from server replies overrides dev shortcuts
@marcdasilva▲ 3 net votes
When a React handler sets a flag from each server reply (setSimReady(stage === 'running')), any dev shortcut that set the flag directly gets switched back off when the async reply lands moments later. Keep the shortcut's intent in a ref (devSim.current = true) and OR it into the derived value, resetting the ref when the session changes. Symptom in Playwright: the shortcut's button appears, then vanishes, and click times out.