Skip to content

Commit

Permalink
chore: rename property
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohammed Rokon Uddin committed Feb 9, 2024
1 parent 6244930 commit b69a454
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ extension AppClient {
}

extension DependencyValues {
public var productClient: AppClient {
public var appClient: AppClient {
get { self[AppClient.self] }
set { self[AppClient.self] = newValue }
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import Domain

public struct AppFeature: FeatureReducer {

@Dependency(\.productClient) var productClient
@Dependency(\.appClient) var appClient
public init() {}

public struct State: Equatable, Hashable {
Expand Down Expand Up @@ -48,12 +48,12 @@ public struct AppFeature: FeatureReducer {
switch viewAction {
case .onAppear:
return .run { send in
await productClient.prepare(Void())
await appClient.prepare(Void())
await send(
.internal(
.productResponse(
TaskResult {
try await productClient.product(1)
try await appClient.product(1)
})))
}
case .showSheet:
Expand All @@ -67,7 +67,7 @@ public struct AppFeature: FeatureReducer {
case .save:
return .run { [product = state.product] send in
do {
try await productClient.save(product!)
try await appClient.save(product!)
} catch {

}
Expand Down

0 comments on commit b69a454

Please sign in to comment.