Starting Scrivito SDK version 1.41.0 this hook is superseded by the Scrivito.useData
hook and will be removed in a future version.
DataItem
from the innermost data context.Starting Scrivito SDK version 1.41.0 this hook is superseded by the Scrivito.useData
hook and will be removed in a future version.
A data context can be provided using the Scrivito.
ContentTag
component with a dataContext
prop.
Returns
DataItem
or undefined
– a DataItem
from the innermost data context. If no data context has been provided, undefined
is returned.