Skip to content

Commit 51aa3e5

Browse files
committed
comment
1 parent 99ea0f8 commit 51aa3e5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/core/vdom/create-component.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ function createFunctionalComponent (
102102
}
103103
return Ctor.options.render.call(
104104
null,
105+
// ensure the createElement function in functional components
106+
// gets a unique context - this is necessary for correct named slot check
105107
bind(createElement, { _self: Object.create(context) }),
106108
{
107109
props,

0 commit comments

Comments
 (0)