- From: DM <notifications@github.com>
- Date: Tue, 21 Jan 2025 04:32:34 -0800
- To: WICG/webcomponents <webcomponents@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <WICG/webcomponents/issues/1069/2604608944@github.com>
@justinfagnani, turning this concept into a standards proposal is epic! You know what I would add to it? Support for Promises and Observables/Observers as template parameters, as in: ```js // With Promises const p = fetch(url).then(r=>r.json()).then(json=>json.stuff); const template1 = `<div>${p}</div>`; // With Observables const stream = new Subject |> filter( ... ) |> map(...); // just a random pass-through observable stream const template2 = ` <button onclick="${stream}">click me</button> <div>${stream}</div> <div class="${stream}"> ... </div> `; ``` Anyway, I might have something for you here. I'm behind [rimmel.js](https://github.com/reactivehtml/rimmel), probably the closest working "userland" match you can find to this proposal, except it directly challenges Signals and promotes an improved use of Observables instead. If you want to create working examples of your concepts and ideas, ping me or get some inspo from [this Stackblitz](https://stackblitz.com/orgs/github/ReactiveHTML/collections/reactivity), too. It's also starting to support web components in the same style... -- Reply to this email directly or view it on GitHub: https://github.com/WICG/webcomponents/issues/1069#issuecomment-2604608944 You are receiving this because you are subscribed to this thread. Message ID: <WICG/webcomponents/issues/1069/2604608944@github.com>
Received on Tuesday, 21 January 2025 12:32:37 UTC