function prefetchData(components, obj) {
  const promises = (Array.isArray(components) ? components : [components])
    .filter(comp =>
      comp && comp.prefetchData && typeof comp.prefetchData === 'function'
    )
    .map(comp =>
      comp.prefetchData.call(this, obj)
    );
  return Promise.all(promises);
}
/**
 * Fetch data needed by components in the current route.
 * Depends on components containing a prefetchData static method.
 */
Fetch data needed by components in the current route.
Depends on components containing a prefetchData static method.
Fetch data needed by components in the current route . Depends on components containing a prefetchData static method .
function prefetchData(components, obj) {
  const promises = (Array.isArray(components) ? components : [components])
    .filter(comp =>
      comp && comp.prefetchData && typeof comp.prefetchData === 'function'
    )
    .map(comp =>
      comp.prefetchData.call(this, obj)
    );
  return Promise.all(promises);
}
function prefetchData ( components , obj ) { const promises = ( Array . isArray ( components ) ? components : [ components ] ) . filter ( comp => comp && comp . prefetchData && typeof comp . prefetchData === 'function' ) . map ( comp => comp . prefetchData . call ( this , obj ) ) ; return Promise . all ( promises ) ; }
Fetch data needed by components in the current route.
Fetch data needed by components in the current route .