taggedjs
Version:
tagged template reactive html
21 lines • 748 B
JavaScript
import { handleProviderChanges } from './handleProviderChanges.function.js';
/** Called when one tag changes and we need to find other tags that will need to be rendered */
export function providersChangeCheck(support) {
const context = support.context;
const providers = context.providers;
if (!providers) {
return [];
}
const prosWithChanges = [];
// reset clones
for (const provider of providers) {
const owner = provider.owner;
const hasChange = handleProviderChanges(owner, provider);
prosWithChanges.push(...hasChange.map(mapToSupport));
}
return prosWithChanges;
}
function mapToSupport(x) {
return x.support;
}
//# sourceMappingURL=providersChangeCheck.function.js.map