- From: Austin Jackson <notifications@github.com>
- Date: Sat, 17 Aug 2024 20:50:57 -0700
- To: WICG/webcomponents <webcomponents@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Sunday, 18 August 2024 03:51:01 UTC
> ```js
> class Cat {
> get name() {
> return `${this.givenName}, the cat`;
> }
> }
>
> class Dog {
> name() => {
> return `${this.givenName}, the dog`;
> }
> }
> ```
@NullVoxPopuli From what I understand, this would be an incorrect usage of Signals. I believe you're supposed to use `new Signal.Computed(...)` for such a scenario.
See: https://github.com/tc39/proposal-signals?tab=readme-ov-file#example---a-signals-counter
--
Reply to this email directly or view it on GitHub:
https://github.com/WICG/webcomponents/issues/1069#issuecomment-2295099646
You are receiving this because you are subscribed to this thread.
Message ID: <WICG/webcomponents/issues/1069/2295099646@github.com>
Received on Sunday, 18 August 2024 03:51:01 UTC