Skip to content

Commit

Permalink
fix incorrect internal 'renderToString' call
Browse files Browse the repository at this point in the history
  • Loading branch information
LankyMoose committed Apr 9, 2024
1 parent 5ec39e2 commit d939e49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/lib/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export * from "./appContext.js"
export * from "./memo.js"
export * from "./portal.js"
export * from "./router.js"
export * from './signal.js'
export * from "./signal.js"
export * from "./store.js"
export * from "./transition.js"

Expand Down Expand Up @@ -129,7 +129,7 @@ function renderToString_internal<T extends Record<string, unknown>>(
if (typeof el === "function")
return renderToString_internal(createElement(el, elProps))
if (el instanceof Array)
return el.map((el) => renderToString(el, el.props)).join("")
return el.map((el) => renderToString_internal(el, el.props)).join("")

el.parent = parent
nodeToCtxMap.set(el, ctx.current)
Expand Down

0 comments on commit d939e49

Please sign in to comment.