The @Observable macro in Swift introduced race conditions when async tasks directly mutated observable models. Suspended tasks could resume during renders, causing state updates to land out of sequence and views to display stale data. The solution involves having async tasks return values instead of directly mutating state,

1m watch time

Sort: