- From: Kevin Gibbons <notifications@github.com>
- Date: Thu, 28 Jul 2022 17:48:24 -0700
- To: WICG/webcomponents <webcomponents@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 29 July 2022 00:48:37 UTC
Is there something wrong with the obvious approach of explicit communication?
```js
class Base extends HTMLElement {
#_
constructor(forwardInternals) {
super()
let internals = this.attachInternals()
this.#_ = internals
forwardInternals?.(internals)
}
}
class MyEl extends Base {
#_
constructor() {
// if you want to be open for further extension, repeat the `forwardInternals` thing in this constructor
let internals;
super(int => { internals = int })
this.#_ = internals
}
}
```
--
Reply to this email directly or view it on GitHub:
https://github.com/WICG/webcomponents/issues/962#issuecomment-1198770019
You are receiving this because you are subscribed to this thread.
Message ID: <WICG/webcomponents/issues/962/1198770019@github.com>
Received on Friday, 29 July 2022 00:48:37 UTC