Currently, {Archetype/Entity}View only keep track of the RowId associated with the primary component of the whole query.
This is fine today because all the things we need to cache are always queried as primary components, but this won't always be the case.
ComponentsWithInstances needs to keep track of the RowIds of each individual component and expose a way for the user to access that information when inspecting the results of a query.
Currently,
{Archetype/Entity}Viewonly keep track of theRowIdassociated with the primary component of the whole query.This is fine today because all the things we need to cache are always queried as primary components, but this won't always be the case.
ComponentsWithInstancesneeds to keep track of theRowIds of each individual component and expose a way for the user to access that information when inspecting the results of a query.