You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
structRequestLocation:ActionType{letlocation:CLLocationfunc reduce(context:TransactionContext<Store<LocationStore>,Self>){defer{// Remember to always call `fulfill` to signal the completion of this operation.
context.fulfill()}
context.reduceModel{ store ->(Void)inCoreLocationProxy().locationPublisher().map{ location in
store.location = location
}}}}
context.reduceModel{ store ->(Void)in
store.requestLocationCancellable = store.proxy.locationPublisher().assign(to: \LocationStore.location, on: store)}
Compile error: Cannot convert value of type 'WritableKeyPath<LocationStore, CLLocation>' to expected argument type 'ReferenceWritableKeyPath<_, CLLocation>'
I don't see how to make this work without turning my store into a class. It works then. Would that code any issue?
Some more examples using publishers, etc would be quite useful btw.
The text was updated successfully, but these errors were encountered:
I am really struggling with this:
I don't see how to make this work without turning my store into a class. It works then. Would that code any issue?
Some more examples using publishers, etc would be quite useful btw.
The text was updated successfully, but these errors were encountered: