You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
}
});
The text was updated successfully, but these errors were encountered:
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
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:
The text was updated successfully, but these errors were encountered: