Replies: 1 comment 1 reply
-
Hi @gkaimakas, there are two things you need to do. First, you cannot put So, you can either move those types back into @CasePathable
enum State {
…
} And second, you don't want to use the Reduce(core)
.ifCaseLet(\.one, action: \.one) {
AFeature()
} With that it should work. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey!
I'm trying to use the
observation-beta
branch to play around with enums and all the other tools introduced there.I have created a simple feature like the following
and i'm trying to incorporate
AFeature
to a root feature:The thing is that the
ifLet
reducer does not seem to work as in the examples since it cannot find akeyPath
for.one
.Furthermore in the examples
@CasePathable
isn't required to get things working but when actually using theobservation-beta
i have to use it.Beta Was this translation helpful? Give feedback.
All reactions