I've made a subclass of UIHostingController, and in its viewDidLoad() method I've used
store.scope(...).ifLet(...).store(in: &cancellables), basically exactly the same as the example here:
I'm sure the
scope statement is correct because I copied it from the previously-pure-SwiftUI code where it worked. I've replaced the
NavigationLink in my SwiftUI view with a Button that sends the same action that the NavigationLink sent in its
The action is received by the reducer as before, and the state is updated as before, but the
then: closure passed into
Store.ifLet(then:else:) is not called.
Has anyone else seen this issue?