Skip to content

Commit

Permalink
fix: add owner property to external component view
Browse files Browse the repository at this point in the history
  • Loading branch information
prevwong committed Mar 9, 2024
1 parent 378baff commit 4e8b283
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/two-frogs-grow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@rekajs/core': patch
---

Add owner property in external component view
1 change: 1 addition & 0 deletions packages/core/src/component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ export class ComponentViewEvaluator {
template: this.template,
children: children || [],
props: Object.fromEntries(props),
owner: this.ctx.owner,
}),
];
});
Expand Down

0 comments on commit 4e8b283

Please sign in to comment.