From 4709c6bf4959f5c5deb21a9075398e34f952086a Mon Sep 17 00:00:00 2001 From: giles Date: Sun, 8 Mar 2026 11:17:22 +0000 Subject: [PATCH] Wire island hydration into post-swap lifecycle - orchestration.sx: post-swap calls sx-hydrate-islands for new islands in swapped content, plus process-emit-elements for data-sx-emit - Regenerate sx-ref.js Co-Authored-By: Claude Opus 4.6 --- shared/static/scripts/sx-ref.js | 3 ++- shared/sx/ref/orchestration.sx | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/shared/static/scripts/sx-ref.js b/shared/static/scripts/sx-ref.js index 09bb94d..1f7fa20 100644 --- a/shared/static/scripts/sx-ref.js +++ b/shared/static/scripts/sx-ref.js @@ -14,7 +14,7 @@ // ========================================================================= var NIL = Object.freeze({ _nil: true, toString: function() { return "nil"; } }); - var SX_VERSION = "2026-03-08T11:14:47Z"; + var SX_VERSION = "2026-03-08T11:17:09Z"; function isNil(x) { return x === NIL || x === null || x === undefined; } function isSxTruthy(x) { return x !== false && !isNil(x); } @@ -2138,6 +2138,7 @@ return postSwap(target); }); var postSwap = function(root) { activateScripts(root); sxProcessScripts(root); sxHydrate(root); +sxHydrateIslands(root); return processElements(root); }; // activate-scripts diff --git a/shared/sx/ref/orchestration.sx b/shared/sx/ref/orchestration.sx index 970b571..778d9f0 100644 --- a/shared/sx/ref/orchestration.sx +++ b/shared/sx/ref/orchestration.sx @@ -432,6 +432,7 @@ (activate-scripts root) (sx-process-scripts root) (sx-hydrate root) + (sx-hydrate-islands root) (process-elements root)))