Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XMLHttpRequest.abort() throws warning #12985

Closed
dpxcc opened this issue Mar 16, 2017 · 1 comment
Closed

XMLHttpRequest.abort() throws warning #12985

dpxcc opened this issue Mar 16, 2017 · 1 comment
Labels
JavaScript Resolution: Locked This issue was locked by the bot.

Comments

@dpxcc
Copy link

dpxcc commented Mar 16, 2017

Description

XMLHttpRequest.abort() throws warnings

Reproduction

https://sketch.expo.io/H1331o_jl

const request = (url, cb) => {
  let _request = new XMLHttpRequest()
  _request.onreadystatechange = () => _request.readyState === 4 && _request.status === 200 && cb(_request.responseText)
  _request.open('GET', url)
  _request.send()
  return _request
}

request('https://www.google.com', text => console.log(text)).abort()

The warnings are not shown in expo:

Sending `didReceiveNetworkResponse` with no listeners registered.
Sending `didReceiveNetworkIncrementalData` with no listeners registered.
Sending `didCompleteNetworkResponse` with no listeners registered.

Solution

Remove warnings

Additional Information

  • React Native version: 0.42
  • Platform: iOS simulator
  • Operating System: MacOS
  • Dev tools: Chrome dev tools
@hramos
Copy link
Contributor

hramos commented May 25, 2017

We're cutting down on the number of outstanding issues, in order to allow us to focus. I'm closing this issue because it has been open for over 60 days with no activity. If you think it should still be opened let us know why. PRs are always welcome.

@hramos hramos closed this as completed May 25, 2017
@hramos hramos added the Icebox label May 26, 2017
@facebook facebook locked as resolved and limited conversation to collaborators May 29, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
JavaScript Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

4 participants