Код: Выделить всё
const loading = [1];
console.log('====before catch', loading);
try {
await Promise.reject(new Error('error'));
} catch (e) {
return false;
} finally {
console.log('====finally', loading);
}
const loading = [1];
try {
await Promise.reject(new Error('error'));
} catch (e) {
return false;
} finally {
console.log('====finally', loading);
}
< /code>
const loading = [1];
try {
await Promise.reject(new Error('error'));
} catch (e) {
// return false;
} finally {
console.log('====finally', loading);
}
< /code>
But these code snippets consoles correct!
It only happens in iOS. RN version 0.7x, it ok in 0.6x
see the details above
Подробнее здесь: https://stackoverflow.com/questions/796 ... e-in-catch