Skip to content

Conversation

@hoxyq
Copy link
Contributor

@hoxyq hoxyq commented Sep 23, 2025

If there is a large owner stack, we could potentially spam multiple fetch requests for the same source map. This adds a simple deduplication logic, based on URL.

Also, this adds a timeout of 60 seconds to all fetch requests initiated by fileFetcher content script.

@hoxyq hoxyq requested review from eps1lon and vzaidman September 23, 2025 16:07
@meta-cla meta-cla bot added the CLA Signed label Sep 23, 2025
@hoxyq hoxyq changed the title fix: dedupe file fetch requests and define a timeout [DevTools] fix: dedupe file fetch requests and define a timeout Sep 23, 2025
Copy link
Collaborator

@eps1lon eps1lon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not too stoked about the timeout but we'll see if that's too disruptive.

@hoxyq
Copy link
Contributor Author

hoxyq commented Sep 23, 2025

Not too stoked about the timeout but we'll see if that's too disruptive.

We need at least something to guarantee that pending requests will be cleared out, so we won't end up in a state with incorrect cache.

1 minute seemed reasonable to me, but we could bump it, if needed.

@hoxyq hoxyq merged commit 24a2ba0 into facebook:main Sep 23, 2025
247 checks passed
@hoxyq hoxyq deleted the devtools/dedupe-file-fetch-requests branch September 23, 2025 18:38
EugeneChoi4 pushed a commit to EugeneChoi4/react that referenced this pull request Sep 24, 2025
…book#34566)

If there is a large owner stack, we could potentially spam multiple
fetch requests for the same source map. This adds a simple deduplication
logic, based on URL.

Also, this adds a timeout of 60 seconds to all fetch requests initiated
by fileFetcher content script.
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.

2 participants