UNPKG

taggedjs

Version:

tagged template reactive html

18 lines 674 B
import { updateExistingValue } from '../tag/update/updateExistingValue.function.js'; import { setUseMemory } from '../state/setUseMemory.object.js'; import { paint } from '../tag/paint.function.js'; /** Used for values that are to subscribe to */ export function processSubUpdate(value, // Observable | Subject contextItem, support) { const global = support.subject.global; if (global.deleted) { return; // same value emitted } // checks if same value updateExistingValue(value, support, contextItem); if (!setUseMemory.stateConfig.support) { paint(); } return; } //# sourceMappingURL=processSubscriptionUpdate.function.js.map