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.07k stars 1.41k forks source link

feat: Implement withoutWarnings function #3081

Closed vladyslavsosiuk closed 3 months ago

vladyslavsosiuk commented 3 months ago

There was a discussion in TCA Slack about how to send actions from the onDisappear modifier while not receiving warnings when the view is actually dismissed. @mbrandonw suggested exploring a 'withoutWarnings' function to allow for explicit ignoring of runtime warnings when they are expected. This PR scratches the surface of that suggestion.

A link to the thread: https://pointfreecommunity.slack.com/archives/C04KQQ7NXHV/p1715628109148009