Skip to content

Commit e5457fa

Browse files
committed
fix ssr components
1 parent bc210e2 commit e5457fa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/happyx/private/macro_utils.nim

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -874,7 +874,8 @@ proc buildHtmlProcedure*(root, body: NimNode, inComponent: bool = false,
874874
if inComponent:
875875
procedure.body = statement[^1]
876876
procedure.body.insert(0, newVarStmt(ident"self", newCall(componentName, ident"self")))
877-
# args.insert(1, newIdentDefs(ident"self", ident"BaseComponent"))
877+
when not defined(js):
878+
args.insert(1, newIdentDefs(ident"self", ident"BaseComponent"))
878879
# Detect in component and in cycle
879880
if inCycle:
880881
let

0 commit comments

Comments
 (0)