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-betabranch 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
AFeatureto a root feature:The thing is that the
ifLetreducer does not seem to work as in the examples since it cannot find akeyPathfor.one.Furthermore in the examples
@CasePathableisn't required to get things working but when actually using theobservation-betai have to use it.Beta Was this translation helpful? Give feedback.
All reactions