dillon1000/react

Commit

DevTools flushes updated passive warning/error info after delay (#20931)

* DevTools flushes updated passive warning/error info after delay
Previously this information was not flushed until the next commit, but this provides a worse user experience if the next commit is really delayed. Instead, the backend now flushes only the warning/error counts after a delay. As a safety, if there are already any pending operations in the queue, we bail.

Co-authored-by: eps1lon <[email protected]>
Browse files
Changed paths3 files
First-parent comparison
M packages/react-devtools-shared/src/__tests__/store-test.js ModifiedM packages/react-devtools-shared/src/__tests__/utils.js ModifiedM packages/react-devtools-shared/src/backend/renderer.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…