problem is that, I can't pass modelItems directly to items fun in the first case, I have to render single block using forEach, which I think is not good, is there a better way of handling this, or should I just create a different screen for another List ?
z
Zach Klippenstein (he/him) [MOD]
01/25/2025, 10:27 PM
I think this is fine,
items
just basically calls forEach over the list anyway.
👍 2
m
mreiter
01/28/2025, 12:05 PM
In case you're facing performance issues with this approach, try adding the
contentType
parameter to your call to
item(s)
contentType - the type of the content of this item. The item compositions of the same type could be reused more efficiently. Note that null is a valid type and items of such type will be considered compatible.