The KOS SDK provides some basic data structures that are helpful when working with collection of homogeneous KOS models. The data structures provided are all observable meaning that any other models or UI components that are referencing these structures will automatically re-rendered.
The KosModelContainer is an Array-like data structure that is optimized for data access. It allows for KOS Models to be added or removed, with both random access (by ID or index) as well as iterable (map, forEach) options depending on the requirement.
There will be cases where the data received from the backed will contain lists of references to other entities via its handle or id. In thess cases, the KosReferenceContainer
can be used to automatically resolve the references and provide asynchronous ready status back to the application. Once resolved the KosReferenceContainer will behave exactly like the KosModelContainer
providing the same API and data access capabilities.