resolve-suspense: process new SX scripts before resolving
Streaming resolve scripts arrive after boot, so any extra component defs sent as <script type="text/sx"> tags weren't being loaded. Fix in the spec (boot.sx): call (process-sx-scripts nil) at the start of resolve-suspense so late-arriving component defs are available in componentEnv before rendering. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1597,6 +1597,8 @@
|
||||
* new SX content, and replaces the wrapper's children.
|
||||
*/
|
||||
resolveSuspense: function (id, sx) {
|
||||
// Process any new <script type="text/sx"> tags (streaming extras)
|
||||
Sx.processScripts();
|
||||
var el = document.querySelector('[data-suspense="' + id + '"]');
|
||||
if (!el) {
|
||||
console.warn("[sx] resolveSuspense: no element for id=" + id);
|
||||
|
||||
Reference in New Issue
Block a user