Replies: 1 comment 1 reply
-
Hey @jose-pay! struct PastaTile: Equatable, Identifiable {
let id = UUID()
let type: PastaType
} Each time you create a new value of this type, it will be different, even if you use the same The same phenomenon happens with navigating back and forth, as your lazy The partial solution would be to find a way to assign stable ID's ( Footnotes
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
The following full working example is triggering an
A "forEach" at "RefreshTest/PastaListView.swift" received an action for a missing element.
This warning is triggered when
a) the user taps on the back button to go back to the main screen and then taps on the "Pasta" cell again
b) when the user pulls to refresh
For case a) It seems that the
PastaListView
stays in memory. The view will appear and you can see the old cells in the list.I guess that the
pastaTiles
in thePastaListReducer.State
can be cleared to get rid of the warning, but it would be interesting to understand the underlying issue here.Beta Was this translation helpful? Give feedback.
All reactions