From a7255d97734abe511f04f6ffa4b6aa076270d2bd Mon Sep 17 00:00:00 2001 From: Alessandro <155005371+3clyp50@users.noreply.github.com> Date: Wed, 8 Jul 2026 20:53:56 +0200 Subject: [PATCH] Await cached component module imports Ensure x-component loading awaits cached dynamic import promises before appending deferred markup, matching first-load behavior and preventing Alpine bindings from running before imported stores register. Document the loader contract in the WebUI JS DOX notes. --- webui/js/AGENTS.md | 1 + webui/js/components.js | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/webui/js/AGENTS.md b/webui/js/AGENTS.md index e92975fb5..60497572f 100644 --- a/webui/js/AGENTS.md +++ b/webui/js/AGENTS.md @@ -37,6 +37,7 @@ - Keep extension loader cache keys and extension point names stable for plugins. - HTML extension loading turns discovered HTML files into `` tags; JavaScript extensions must export a default function. - `` loading must process component `style`, `script`, and stylesheet-link assets only once, even when a component keeps its scoped `