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 <noreply@anthropic.com>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -432,6 +432,7 @@
|
||||
(activate-scripts root)
|
||||
(sx-process-scripts root)
|
||||
(sx-hydrate root)
|
||||
(sx-hydrate-islands root)
|
||||
(process-elements root)))
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user