lib/render.js
function formDataForRenderer(unresolvedData, { _layoutRef, _ref }, locals) {
  return composer.resolveComponentReferences(unresolvedData, locals)
    .then((data) => ({
      data,
      options: { locals, _ref, _layoutRef }
    }));
}
function formDataForRenderer(unresolvedData, { _layoutRef, _ref }, locals) {
  return composer.resolveComponentReferences(unresolvedData, locals)
    .then((data) => ({
      data,
      options: { locals, _ref, _layoutRef }
    }));
}
function formDataForRenderer ( unresolvedData , { _layoutRef , _ref } , locals ) { return composer . resolveComponentReferences ( unresolvedData , locals ) . then ( ( data ) => ( { data , options : { locals , _ref , _layoutRef } } ) ) ; }
Resolve all references for nested objects and form the
data up in the expected object to send to a renderer
@param  {Object} unresolvedData
@param  {Object} options
@param  {Object} locals
@return {Promise}
Resolve all references for nested objects and form the data up in the expected object to send to a renderer