WICG / proposals

A home for well-formed proposed incubations for the web platform. All proposals welcome.
https://wicg.io/
Other
233 stars 16 forks source link

Observable API #118

Closed domfarolino closed 1 year ago

domfarolino commented 1 year ago

Introduction

Event handling on the web platform is done imperatively, often with nested callbacks and a difficult-to-read flow of events. Observables offer a declarative, ergonomic, and composable way of handling events dispatched from an EventTarget.

Read the complete Explainer.

Feedback (Choose One)

I welcome feedback in this thread, but encourage you to file bugs against the Explainer.

domfarolino commented 1 year ago

I am working on a draft prototype of this API in Chromium, but have not yet sent an Intent to Prototype out. Does that count as enough support to begin to move this to WICG? @benlesh should be able to provide industry support for this proposal too.

benlesh commented 1 year ago

There is a lot of interest in this proposal from the community and from other library authors. Anecdotally:

  1. A tweet linking this issue did quite well: https://twitter.com/BenLesh/status/1699460146219339785
  2. More than one company has offered (unsolicited) sponsor my trip to TPAC to discuss this (I was paying out of pocket), for no other reason than they'd love to have it in the platform.
  3. The initial issue on WHATWG got a lot of attention as well: https://github.com/whatwg/dom/issues/544#issue-281633681
  4. A previous tweet about the repo with the proposal got a good amount of traction as well: https://twitter.com/domfarolino/status/1684921351004430336... which included a lot of excitement from influential web developers and framework implementors including Svelte and SolidJS
cwilso commented 1 year ago

This seems like enough support to move into WICG org. Feel free to transfer the repo to me and I will move it.

domfarolino commented 1 year ago

The repository has been moved to https://github.com/WICG/observable, so I think we can close this.