It is now possible to access a DataScope
from the current data using the new Scrivito.useData
hook (which supersedes the Scrivito.useDataItem
hook). The new hook always returns a DataScope
. In order to check whether this scope is just a single item or a collection of items, the new DataScope#isDataItem
method can be used. The item can then be retrieved via DataScope#dataItem
.