Skip to content

Commit d638733

Browse files
authored
Remove debug gracefully for Release configurations (#23)
When the app is compiled in Release configuration with `.debug()` function still attached to a reducer, `return .none` short-circuts the reducer instead of just removing debug feature. Just released an app to TestFlight, that doesn't work there but works on-device in Debug configuration : )
1 parent 1ae2d86 commit d638733

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/ComposableArchitecture/Debugging/ReducerDebugging.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ extension Reducer {
8888
)
8989
}
9090
#else
91-
return .empty
91+
return self
9292
#endif
9393
}
9494
}

0 commit comments

Comments
 (0)