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
12.22k stars 1.42k forks source link

Enable customDump only in debug mode #3058

Closed heoblitz closed 4 months ago

heoblitz commented 4 months ago

Reduce unnecessary code execution by enabling customDump only in debug mode, as in .run Effect.

https://github.com/pointfreeco/swift-composable-architecture/blob/main/Sources/ComposableArchitecture/Effect.swift#L101