I found that adding an empty onChange method with subItems makes it work:
listview.onChange(of: item.subItems) { old, new in
// ignore
}
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: