Skip to content

Commit 294ac2c

Browse files
Prevent reduce function from being optimized (#3683)
1 parent 62adec5 commit 294ac2c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sources/ComposableArchitecture/Reducer.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ extension Reducer where Body == Never {
8282
extension Reducer where Body: Reducer<State, Action> {
8383
/// Invokes the ``Body-40qdd``'s implementation of ``reduce(into:action:)-1t2ri``.
8484
@inlinable
85+
@_optimize(none)
8586
public func reduce(
8687
into state: inout Body.State, action: Body.Action
8788
) -> Effect<Body.Action> {

0 commit comments

Comments
 (0)