diff --git a/docs/p03-events.html.js b/docs/p03-events.html.js index eeb4aa9..828aba5 100644 --- a/docs/p03-events.html.js +++ b/docs/p03-events.html.js @@ -36,11 +36,6 @@ const references= { mdn_mutation: { href: "https://developer.mozilla.org/en-US/docs/Web/API/MutationObserver", }, - /** TODO Readding the element to the DOM fix by Vue */ - vue_fix: { - title: t`Vue and Web Components, lifecycle implementation readding the element to the DOM`, - href: "https://vuejs.org/guide/extras/web-components.html#lifecycle", - } }; /** @param {import("./types.d.ts").PageAttrs} attrs */ export function page({ pkg, info }){ diff --git a/src/events-observer.js b/src/events-observer.js index 83935ba..451ef8c 100644 --- a/src/events-observer.js +++ b/src/events-observer.js @@ -214,6 +214,7 @@ function connectionsChangesObserverConstructor(){ const ls= store.get(element); if(!ls.length_d) continue; + // support for S.el, see https://vuejs.org/guide/extras/web-components.html#lifecycle (globalThis.queueMicrotask || setTimeout)(dispatchRemove(element)); out= true; } diff --git a/src/events.js b/src/events.js index bfc470d..0ee3a5f 100644 --- a/src/events.js +++ b/src/events.js @@ -47,7 +47,6 @@ import { c_ch_o } from "./events-observer.js"; const lifeOptions= obj=> oAssign({}, typeof obj==="object" ? obj : null, { once: true }); //TODO: cleanUp when event before abort? -//TODO: docs (e.g.) https://nolanlawson.com/2024/01/13/web-component-gotcha-constructor-vs-connectedcallback/ /** * Creates a function to register connected lifecycle event listeners diff --git a/src/signals-lib/signals-lib.js b/src/signals-lib/signals-lib.js index 690ae77..bef3a00 100644 --- a/src/signals-lib/signals-lib.js +++ b/src/signals-lib/signals-lib.js @@ -170,7 +170,6 @@ export function cache(store= oCreate()){ /** * Creates a reactive DOM element that re-renders when signal changes * - * @TODO Third argument for handle `cache_tmp` in re-render * @param {Object} s - Signal object to watch * @param {Function} map - Function mapping signal value to DOM elements * @returns {DocumentFragment} Fragment containing reactive elements