react/packages/react-devtools-shared
Brian Vaughn cfd8c1bd43
DevTools: Restore inspect-element bridge optimizations (#20789)
* Restore inspect-element bridge optimizations

When the new Suspense cache was integrated (so that startTransition could be used) I removed a couple of optimizations between the backend and frontend that reduced bridge traffic when e.g. dehydrated paths were inspected for elements that had not rendered since previously inspected. This commit re-adds those optimizations as well as an additional test with a bug fix that I noticed while reading the backend code.

There are two remaining TODO items as of this commit:
- Make inspected element edits and deletes also use transition API
- Don't over-eagerly refresh the cache in our ping-for-updates handler

I will addres both in subsequent commits.

* Poll for update only refreshes cache when there's an update

* Added inline comment
2021-02-22 14:04:20 -05:00
..
src DevTools: Restore inspect-element bridge optimizations (#20789) 2021-02-22 14:04:20 -05:00
babel.config.js DevTools: Drop IE 11 support (#19875) 2020-09-21 11:07:45 -04:00
buildUtils.js [DevTools] Add DevTools forked Feature flags (#18994) 2020-10-12 13:07:10 -04:00
package.json Improve DevTools editing interface (#19774) 2020-09-18 11:07:18 -04:00