3 ms·
I've been looking for something like your rendering behavior article :) One question though: is it pretty up to date with changes since 2020? (I think there wer
by westoncb 4y ago
I've been looking for something like your rendering behavior article :) One question though: is it pretty up to date with changes since 2020? (I think there were some things in React 18 that would affect rendering behavior—not sure though).
- acemarke 4y agoHeh, unfortunately "update my rendering post to cover React 18" has been on my todo list for _months_ now :) As in, I literally have a todo list entry that I keep bumping back until "Next Sunday", because other stuff is higher priority. (like, trying to get Redux Toolkit 1.9 wrapped up and shipped... and also playing as much golf as possible while the weather is decent :) ) The shortest answer is that it's still effectively the same - the one major change is that React 18 will now batch _all_ updates in _any_ given event loop tick, regardless of whether those were queued up inside a React event handler or not. There's a good discussion on this in the React 18 Working Group post on "Automatic Batching": https://github.com/reactwg/react-18/discussions/21 https://github.com/reactwg/react-18/discussions/21
- westoncb 4y agoAh okay—no problem. Actually the only concrete rendering-related thing I'd seen on React 18 was about the auto-batching, so I'm already clear on the differences there. So I'll still be giving the article a read—thanks for you work on it, and enjoy the golf lol.