Skip to content

Commit 16ecea7

Browse files
committed
controller.Application: afterSetMainView() => brute-force self heal for SSR
1 parent 55fe150 commit 16ecea7

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/controller/Application.mjs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,12 @@ class Application extends Base {
107107
value.onInitVnode(config.vnode, true);
108108

109109
// Clean up the config to prevent re-use
110-
delete config.vnode
110+
delete config.vnode;
111+
112+
// Self-healing: if there happen to be different ids within vdom and vnode,
113+
// the vdom worker will create patches as needed.
114+
value.updateDepth = -1;
115+
value.update()
111116
} else {
112117
// Standard Client-Side Rendering Path
113118
await value.initVnode(true)

0 commit comments

Comments
 (0)