Data Binding - Repeated Referenced Model
I’m finding a very strange behaviour that it’s unclear if it’s a bug or expected behaviour!
THE SETUP
Some of the models in my RIve are setup as follows:
Marker - Just defines some properties for a location marker
Locations - Each instance has it’s own marker, that is being referenced in the VM
Map: Loads each of the 59 locations with a list, and has a reference to each instance to change their values at runtime
THE ISSUE
When i run this the marker, referenced inside each location, gets repeated for every number of referenced instances in the Map VM. Toggling for example the enum property changes the value for every repetition.
What I would consider expected behaviour would be for each location, ex: Location 1, to have only a single item for the property of MapMarker, not 59 for each Location instance 😱
Here’s how it looks!
While it all seems to work fine, it’s annoying to parse (I neet to alays collapse each) and I’d worry about performance, which I haven’t tested.