Thanks for sharing all this info you two! I didn’t realize there’s all this UserTiming stuff that’s part of devtools. Also this post on the calibre blog is pretty good: https://calibreapp.com/blog/react-performance-profiling-optimization
Note that in React v17 they removed User Timings API from React internals, which is unfortunate because it allowed having all debug info in one place (react calls next to generic JS flamegraph)
Ah interesting, so basically it’s advised to use React Profiler now https://reactjs.org/blog/2018/09/10/introducing-the-react-profiler.html
yeah I've been looking at the React profiler API. Unfortunately, it requires delivering a slightly different (less performant) bundle
I haven't investigated how much less performant