archivo js helpers exportado
export const foo1 = async () => { const url = "www.foo.com"; try { response = await fetch(url, { method: 'POST'}); } catch (e) { throw new Error(`return another error:${e}`); } if (response) { const responseText = await response.text(); const blob = responseText.toBlob(); return blob; } }archivo js principal
Si importo la función foo1 aquí y la pongo en un intento/captura:
try { this.fooData = await foo1(); } catch(e) { this.error = e } ¿Puedo eliminar el intento/atrapar de la búsqueda de foo1 ? ¿Es ahora innecesario ya que tengo uno en la función principal que invoca a foo1 ?