A DataScope
allows application developers to interact with data referenced by a DataLocator
. In order to retrieve a DataScope
from the current data, the Scrivito.useData
hook can be used.
A DataScope
allows application developers to interact with data referenced by a DataLocator
. In order to retrieve a DataScope
from the current data, the Scrivito.useData
hook can be used.
A DataScope
is a single-item scope if it can inherently contain only one item. This is the case if and only if the corresponding DataLocator
has at least one filter for the _id
attribute. Otherwise, a DataScope
is a multi-item scope.
A DataScope
that incidentally contains one item is not a single-item scope. So “All Orders” is still a multi-item DataScope
, even if currently only one order exists.