-
Notifications
You must be signed in to change notification settings - Fork 49.3k
Open
Labels
Component: DOMReact Core TeamOpened by a member of the React Core TeamOpened by a member of the React Core TeamType: Big PictureType: Feature Request
Description
https://github.com/WICG/EventListenerOptions/blob/gh-pages/explainer.md
It would be good to have everything be passive by default and only opt-in to active when needed. E.g. you could listen to text input events but only preventDefault or used controlled behavior when you have active listeners.
Similarly, we could unify this with React Native's threading model. E.g. one thing we could do there is synchronously block the UI thread when there are active listeners such as handling keystrokes.
ruiaraujo, foiseworth, cesarandreu, arypurnomoz, stevescavo and 264 moreMehdiRaash, zhangenming, kapilropani, vincerubinetti, mithi and 3 moremadj8, arypurnomoz, SimonTart, aanich-assf, vincerubinetti and 2 morebrainkim, adonig, mienaikoe and busy-dog
Metadata
Metadata
Assignees
Labels
Component: DOMReact Core TeamOpened by a member of the React Core TeamOpened by a member of the React Core TeamType: Big PictureType: Feature Request