diff --git a/.changeset/two-frogs-grow.md b/.changeset/two-frogs-grow.md new file mode 100644 index 00000000..89752c9b --- /dev/null +++ b/.changeset/two-frogs-grow.md @@ -0,0 +1,5 @@ +--- +'@rekajs/core': patch +--- + +Add owner property in external component view diff --git a/packages/core/src/component.ts b/packages/core/src/component.ts index fc435e2e..cd0d51df 100644 --- a/packages/core/src/component.ts +++ b/packages/core/src/component.ts @@ -165,6 +165,7 @@ export class ComponentViewEvaluator { template: this.template, children: children || [], props: Object.fromEntries(props), + owner: this.ctx.owner, }), ]; });