I’d define a ListModel and a populate function, and call populate(r) from the callback to fill it.
ListModel
populate(r)