taggedjs
Version:
tagged template reactive html
9 lines • 524 B
JavaScript
import { getSupportInCycle } from '../tag/cycles/getSupportInCycle.function.js';
import { Subject } from '../subject/Subject.class.js';
/** Emits event at the end of a tag being rendered. Use tagClosed$.toPromise() to render a tag after a current tag is done rendering */
export const tagClosed$ = new Subject(undefined, function tagCloser(subscription) {
if (!getSupportInCycle()) {
subscription.next(); // we are not currently processing so process now
}
});
//# sourceMappingURL=tagClosed$.subject.js.map