Replies: 1 comment 5 replies
-
Just use the new CaseKeypaths and return: |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a parent feature, let's call it
Week
. AWeek
can have some child features. let's call themDay
. AWeek.State
also has aselecteDay
property that I use to pluck out one day and display to the user. My current setup looks like the following:The way that I'm doing things though never felt elegant and with the newest versions of TCA, the scope that I'm using is deprecated and ideally I'd want to move away from this ASAP.
Is there a better way to tackle this?
I would assume that
.filter(where: (ChildFeature.State.ID) -> Bool)
andfirst(where: (ChildFeature.State.ID) -> Bool)
functions would be available for stores that the state isIdentifiedArrayOf<Something>
but that is not the case.Beta Was this translation helpful? Give feedback.
All reactions