Skip to content

Commit d52011f

Browse files
committed
Setting the app context to each newly created component
1 parent c8050cb commit d52011f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/mount-dom.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ function createComponentNode(vdom, parentEl, index, hostComponent)
4242
const component = new Component(props, events, hostComponent);
4343

4444
component.setExternalContent(children);
45+
component.setAppContext(hostComponent?.appContext ?? {});
4546
component.mount(parentEl, index);
4647
vdom.component = component; // Save component's first DOM Element in the Virtual Node.
4748
vdom.el = component.componentFirstElement;

0 commit comments

Comments
 (0)