partial apply for closure #2 in _DependencyKeyWritingReducer.reduce(into:action:) #3227
Unanswered
HyungGilHam
asked this question in
Q&A
Replies: 3 comments
-
Currently testing with debounce. case .drawToolbar(let model, let list):
return .run { send in
await send(.saveState)
await send(.checkLegend)
await send(.bottomSalesCountHiddden)
if let changed = list.filter({$0.type == model?.type}).first {
await send(.loadMarker(changed))
await send(.loadMapArea(changed))
} else {
await send(.loadMarker(nil))
}
}.debounce(id: DebounceId(), for: 0.3, scheduler: mainQueue) But ultimately, I think we have to find the problem. |
Beta Was this translation helpful? Give feedback.
0 replies
-
@HyungGilHam I think we need more information before we can consider this a library bug. If you can share a repro that definitely shows a problem in our library, we'd be happy to track it here, but for now I think we should convert this to a discussion till you've gathered more information. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I face same issue. Any solution @HyungGilHam? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
We have integrated Firebase Crashlytics to capture the crash details. Below is the detailed crash report from Firebase Crashlytics:
Checklist
main
branch of this package.Expected behavior
The crash appears to be related to the use of concurrency and dependency injection within the reducer.
Actual behavior
Relevant Code
Crash Location: await send(.loadMarker(nil))
Conditions: This action is called multiple times.
Steps to reproduce
Since it came out as a crash report, it is difficult to reproduce. Are there any expected problems?
The Composable Architecture version information
1.11.2
Destination operating system
iPadOS 17.4.1, iPadOS 17.5.1, iOS 18.0
Xcode version information
Version 15.3
Swift Compiler version information
Beta Was this translation helpful? Give feedback.
All reactions