Fix DevTools fetch request cleanup by fallintoplace · Pull Request #36837 · react/react · GitHub
Skip to content

Fix DevTools fetch request cleanup#36837

Open
fallintoplace wants to merge 2 commits into
react:mainfrom
fallintoplace:fix-devtools-fetch-cleanup
Open

Fix DevTools fetch request cleanup#36837
fallintoplace wants to merge 2 commits into
react:mainfrom
fallintoplace:fix-devtools-fetch-cleanup

Conversation

@fallintoplace

@fallintoplace fallintoplace commented Jun 21, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Track page fetches by URL with a single pending promise/listener and reuse it for duplicate callers.
  • Clean up pending fetch listeners on completion, error, timeout, navigation, and DevTools unload.

How did you test this?

  • corepack yarn prettier
  • corepack yarn lint packages/react-devtools-extensions/src/main/fetchFileWithCaching.js

@meta-cla meta-cla Bot added the CLA Signed label Jun 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant