]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commit
fix: post updated message on connectorStatusChanged to fix stale UI cache
authorJérôme Benoit <jerome.benoit@sap.com>
Wed, 25 Mar 2026 21:20:43 +0000 (22:20 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Wed, 25 Mar 2026 21:20:43 +0000 (22:20 +0100)
commit7337563a60ab9b6172afca92b64fbc485e85e18f
treebcf4ab9da8a75f0986ede960f0475ea87221ca44
parent94ca77c31986926a813a36dc2a2afc8ecd6e002c
fix: post updated message on connectorStatusChanged to fix stale UI cache

The .finally() in internalSendMessage emits the updated event BEFORE
sendAndSetConnectorStatus updates connectorStatus.status, causing the
UI cache to snapshot the old status. The connectorStatusChanged event
fires AFTER the update, so posting an updated message on it ensures
the cache receives the correct connector status.
src/charging-station/ChargingStation.ts