0.49.2
Brings the fork up to date with the upstream TCA release 0.49.2
Please refer to the TCA release notes for 0.49.0, 0.49.1 and 0.49.2.
⚠️ ReactiveSwift TCA specific changes
As discussed in pointfreeco/swift-dependencies#16, the best long term solution was to simply rename the mainQueue
dependency keyPath to be \.mainQueueScheduler
, avoiding ambiguity with the \.mainQueue
defined in Dependencies
(which relies on CombineSchedulers).
As such, RAS-TCA users should use the \.mainQueueScheduler
hey path when declaring DateScheduler
dependencies:
@Dependency(\.mainQueueScheduler) var mainQueue
As a consequence, updating a dependency (e.g. in unit tests) should be done using the mainQueueScheduler
property:
let mainQueue = TestScheduler()
// ...
store.dependencies.mainQueueScheduler = mainQueue
// ...