Update index.js#120
Closed
everettbu wants to merge 1 commit into
Closed
Conversation
https://github.com/facebook/react/blob/3958d5d84b3d3e6ae5c1caef9c8cf0dc58e862e6/packages/react-devtools-extensions/src/main/reactPolling.js#L79-L82 ```js // Start next attempt in 0.5s return new Promise(r => setTimeout(r, 500)).then(() => poll(attempt + 1), ); ``` Attemps start every 0.5s, therefore the comment is wrong.
Greptile OverviewGreptile SummaryCorrected an inaccurate comment in the React DevTools extension initialization code. The polling mechanism attempts to detect React on a page 5 times with 0.5-second intervals (as confirmed in
Confidence Score: 5/5
Important Files ChangedFile Analysis
|
Author
|
Upstream PR was closed or merged. Code is synced via branch mirror. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Mirror of facebook/react#34136
Original author: adriancuadrado
https://github.com/facebook/react/blob/3958d5d84b3d3e6ae5c1caef9c8cf0dc58e862e6/packages/react-devtools-extensions/src/main/reactPolling.js#L79-L82
Attemps start every 0.5s, therefore the comment is wrong.
Summary
The comment was wrong so I fixed it.
How did you test this change?
I didn't really test this change. It's just a change in a comment, it shouldn't break anything.