Fix a shipment board that stopped updating after going zoneless

intermediate
By FrontendAtlas Editorial · Updated Nov 12, 2026
The shipment board moved to zoneless change detection, and its list to OnPush, in the last release. Three reports came in since. Report 1: "After I click Refresh, the status says Syncing… forever, although the sync finishes in a moment." Report 2: "Add shipment does nothing: the list keeps three rows and the header still says 3 shipments." Report 3: "Next moves the selection, the line above the list says Selected: S-102, but the highlighted row stays on S-101." Find the root cause of each report and fix all three. Keep the app zoneless, keep ShipmentListComponent on OnPush, and keep the test ids and button labels.

Solution idea

Report 1 comes from the zoneless switch itself. refresh() writes syncStatus after an await; zone.js used to run change detection when the timer fired, but without it nothing tells Angular that a plain field changed, so the view keeps Syncing…. Keeping syncStatus in a signal fixes it: set() schedules the refresh.