-
I'm building an app that allows users to store data for each day, so i have a DayFeature, above that is the DaysFeature which stores the days in an IdentifiedArrayOf. Everything has been working OK but I got to the stage where I needed to implement navigation and I'm hitting problems. Generic struct 'ForEach' requires that 'Store<IdentifiedArrayOf<DayFeature.State>, IdentifiedActionOf>' (aka 'Store<IdentifiedArray<Tagged<DayFeature.State, UUID>, DayFeature.State>, IdentifiedAction<Tagged<DayFeature.State, UUID>, DayFeature.Action>>') conform to 'RandomAccessCollection' I know I'm probably doing something stupid, any help would be great.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I figured it out, after reading the document on migrating to 1.8 I realise I should be passing the state of the dayStore. |
Beta Was this translation helpful? Give feedback.
I figured it out, after reading the document on migrating to 1.8 I realise I should be passing the state of the dayStore.
Changing it to dayStore.state fixed my issue. I got confused seeing the name of the Feature bu tthe migration showed me it's working out the .State and .Action requirements with the macro.