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

How to be certain that the callback returns an error #73

Open
HighSoftWare96 opened this issue Dec 20, 2018 · 0 comments
Open

How to be certain that the callback returns an error #73

HighSoftWare96 opened this issue Dec 20, 2018 · 0 comments
Labels
next-major-version Issue should be included in next major version release

Comments

@HighSoftWare96
Copy link

I was wondering if there is a correct way to know if there was an error retrieving the network data requested in the callback, I think this is not a good way to do that:

NetworkInfo.getSSID(ssid => {
  if (ssid == "error") {
     // error
   } else {
    // OK
   }
});
@HighSoftWare96 HighSoftWare96 changed the title How to certain that the callback returns an error How to be certain that the callback returns an error Dec 20, 2018
@pusherman pusherman added the next-major-version Issue should be included in next major version release label Jan 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
next-major-version Issue should be included in next major version release
Projects
None yet
Development

No branches or pull requests

2 participants