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:
@@ -103,6 +103,9 @@
|
||||
|
||||
(define resolve-suspense
|
||||
(fn (id sx)
|
||||
;; Process any new <script type="text/sx"> tags that arrived via
|
||||
;; streaming (e.g. extra component defs) before resolving.
|
||||
(process-sx-scripts nil)
|
||||
(let ((el (dom-query (str "[data-suspense=\"" id "\"]"))))
|
||||
(if el
|
||||
(do
|
||||
|
||||
Reference in New Issue
Block a user