Skip to content

Conversation

adriancuadrado
Copy link

// 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.

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.

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.
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