List, Array, or Dict for a series of dynamic checkboxes

This post talks a bit about it:

It is not guaranteed that the view will have the latest model always, and you should avoid having logic on it.

Picture that on your model you remove an entry, and the user generated a message on one entry after that one. The message will come from the old model indices. In update you will get a message with an id referring to a different thing than what the user thought because the items shifted.

So if your collection will have arbitrary additions or removals I would personally consider using indexes to send messages on the view dangerous.

1 Like