MCPcopy Create free account
hub / github.com/microsoft/SandDance / getLoaderContext

Function getLoaderContext

docs/app/js/sanddance-app.js:56706–56714  ·  view source on GitHub ↗
(context, options)

Source from the content-addressed store, hash-verified

56704 return target;
56705}
56706function getLoaderContext(context, options) {
56707 var previousContext = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
56708 if (previousContext) return previousContext;
56709 context = _objectSpread({
56710 fetch: (0, _optionUtils.getFetchFunction)(options || {}, context)
56711 }, context);
56712 if (!Array.isArray(context.loaders)) context.loaders = null;
56713 return context;
56714}
56715function getLoaders(loaders, context) {
56716 if (!context && loaders && !Array.isArray(loaders)) return loaders;
56717 var candidateLoaders;

Callers

nothing calls this directly

Calls 1

_objectSpreadFunction · 0.70

Tested by

no test coverage detected