Skip to content

Commit

Permalink
sending analytics writes to outside world so should be an efefct
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverfoggin committed Jun 5, 2023
1 parent 57b525e commit 4f2ecc4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Sources/ComposableAnalytics/AnalyticsReducer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ public struct AnalyticsReducer<State, Action>: Reducer {
guard let analyticsData = toAnalyticsData(state, action) else {
return .none
}
analyticsClient.sendAnalytics(analyticsData)

return .none

return .run { _ in
analyticsClient.sendAnalytics(analyticsData)
}
}
}

0 comments on commit 4f2ecc4

Please sign in to comment.