Skip to content

Commit

Permalink
Update Code base to 0.47.2 Version (#81)
Browse files Browse the repository at this point in the history
* empty commit

* Bump code base to 0.46.0 version code base Composable Architecture (#82)

update changes 0.46.0
  • Loading branch information
dikasetiadi authored Mar 27, 2023
1 parent c7d2f5d commit 3ac95f6
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ public struct _ReducerPrinter<State, Action> {
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)
Expand All @@ -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))")
}
}
Expand Down

0 comments on commit 3ac95f6

Please sign in to comment.