Skip to content

Commit dc8a68e

Browse files
committed
fix: pass element creation helper to static render fns for functional components
fix #12625
1 parent 8904ca7 commit dc8a68e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/core/instance/render-helpers/render-static.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export function renderStatic(
1818
// otherwise, render a fresh tree.
1919
tree = cached[index] = this.$options.staticRenderFns[index].call(
2020
this._renderProxy,
21-
null,
21+
this._c,
2222
this // for render fns generated for functional component templates
2323
)
2424
markStatic(tree, `__static__${index}`, false)

0 commit comments

Comments
 (0)