mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-11 06:04:55 +08:00
Currently our components don't orchestrate their DOM updates, which leads to interleaved reading and writing layout-centric values, e.g. clientHeight, scrollTop etc. This CL introduces a helper to ensure that we do reads, writes, and scrolls at the correct point in the frame lifecycle. Future work would be to lint the use of the various layout-centric DOM APIs and to ensure that they are wrapped in the correct callbacks. Bug: 1171202 See: https://gist.github.com/paulirish/5d52fb081b3570c81e3a Change-Id: Ie70df412ebb2db006bcbc50608d8855e093e7a07 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2650530 Commit-Queue: Paul Lewis <aerotwist@chromium.org> Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>