pointfreeco / swift-composable-architecture

A library for building applications in a consistent and understandable way, with composition, testing, and ergonomics in mind.
https://www.pointfree.co/collections/composable-architecture
MIT License
11.91k stars 1.37k forks source link

Clean up SyncUps tutorial with mock value #3148

Closed stephencelis closed 1 month ago

stephencelis commented 1 month ago

We have one step in the tutorial that isn't quite right because it uses SyncUp.mock for a preview when it is never defined.

I think the mock value is probably good to add early in the tutorial as the same value is used in a bunch of previews, so this commit does just that!