Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,12 @@ public struct _PrintChangesReducer<Base: ReducerProtocol>: ReducerProtocol {
self.printer = printer
}

@usableFromInline
@Dependency(\.context) var context

@inlinable
public func reduce(
into state: inout Base.State, action: Base.Action
) -> EffectTask<Base.Action> {
#if DEBUG
if self.context != .test, let printer = self.printer {
if let printer = self.printer {
let oldState = state
let effects = self.base.reduce(into: &state, action: action)
return effects.merge(
Expand Down