Replies: 1 comment 3 replies
-
I mentioned this in Slack, but just to capture some of it here: I think drawing inspiration from how UIKit works can help. With For example, if So, that makes me think we can enforce an invariant in the root state that tries it's hardest to prevent the struct AppFeature: Reducer {
struct State {
var path = StackState<Path>() {
didSet {
guard
self.path.isEmpty,
!oldValue.path.isEmpty
else { return }
self.path = [oldValue.path.first!]
}
}
}
…
} And then you would just use It's of course not full proof. You can always create |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm building a wizard flow where any number of screens could be the first screen. It's easiest to think of these as a single collection of features, but the way the
NavigationStateStore
works means that I need to define a separate root view. I was trying to figure out a way to make it fully driven off theStackState
.I mostly got it there, but this breaks the pop functionality:
Any thoughts on how we might do something like this?
Beta Was this translation helpful? Give feedback.
All reactions