top | item 17143516

React 16.4 release notes (pointer events)

85 points| threatofrain | 7 years ago |reactjs.org | reply

20 comments

order
[+] Saaster|7 years ago|reply
Pointer events integrate inputs from mice, touchscreens, and pens, making separate implementations no longer necessary and authoring for cross-device pointers easier. The one input API to rule them all!

Except... of course Pointer Events doesn't work in Safari. Safari doesn't even support the regular mouse event "buttons" property which has been in the specs forever, which is a constant source of Safari specific bugs in my experience. Nothing happens when you click? Oh, you must be using Safari!

Why is input handling such a pain in the behind!

[+] notheguyouthink|7 years ago|reply
I'm just excited for https://reactjs.org/blog/2018/03/27/update-on-async-renderin... , and curious to see how it works in our code.
[+] deckard1|7 years ago|reply
It's going to be interesting to see how this plays out. It's an enormous effort on their part, and for the users with all the API changes.

But Dan's "Beyond React 16" demo simply was not compelling at all for me. With the focus on latency but no mention of bandwidth, it's really hard to understand the full impact on mobile devices. With TCP, throughput decreases as latency increases. Queue up too many requests, and the UI will get more disconnected, not less. Anyone that has had to work on an image gallery knows this all too well. Then you have SSR, and promises from render() that potentially swallow errors... lots of unknowns here.

If all these efforts turn into a wash, or at best a subtle improvement at a cost of relearning React... people are going to be asking if it was worth it.

[+] globuous|7 years ago|reply
Absolutely ! Any news on that btw ?
[+] KeitIG|7 years ago|reply
Great release. I am still desperately waiting for passive/once events support though. VueJS integrates them in a trivial way:

    <div v-on:scroll.passive="onScroll">...</div>
Would love to have this simplicity in React.
[+] pluma|7 years ago|reply
In the grand scheme of things this sounds like one of the more boring version bumps but I'm sure a lot of people are going to be really excited about this.