withDependencies(_:operation:)
Overrides the store’s dependencies for a given operation.
@MainActor func withDependencies<R>(_ updateValuesForOperation: (_ dependencies: inout DependencyValues) throws -> Void, operation: () throws -> R) rethrows -> R
Parameters
- updateValuesForOperation
A closure for updating the store’s dependency values for the duration of the operation.
- operation
The operation.