From 3ac95f6ce3719ce074951f5b5eed90ab882850f4 Mon Sep 17 00:00:00 2001 From: Andhika Setiadi Date: Mon, 27 Mar 2023 13:35:25 +0700 Subject: [PATCH] Update Code base to 0.47.2 Version (#81) * empty commit * Bump code base to 0.46.0 version code base Composable Architecture (#82) update changes 0.46.0 --- .../Reducer/Reducers/DebugReducer.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Sources/RxComposableArchitecture/Reducer/Reducers/DebugReducer.swift b/Sources/RxComposableArchitecture/Reducer/Reducers/DebugReducer.swift index 7347500..5054e9c 100644 --- a/Sources/RxComposableArchitecture/Reducer/Reducers/DebugReducer.swift +++ b/Sources/RxComposableArchitecture/Reducer/Reducers/DebugReducer.swift @@ -33,6 +33,8 @@ public struct _ReducerPrinter { extension _ReducerPrinter { public static var customDump: Self { Self { receivedAction, oldState, newState in + @Dependency(\.context) var context + guard context != .preview else { return } var target = "" target.write("received action:\n") RxComposableArchitecture.customDump(receivedAction, to: &target, indent: 2) @@ -44,6 +46,8 @@ extension _ReducerPrinter { public static var actionLabels: Self { Self { receivedAction, _, _ in + @Dependency(\.context) var context + guard context != .preview else { return } print("received action: \(debugCaseOutput(receivedAction))") } }