You don't have access to this class

Keep learning! Join and start boosting your career

Aprovecha el precio especial y haz tu profesión a prueba de IA

Antes: $249

Currency
$209
Suscríbete

Termina en:

0 Días
19 Hrs
19 Min
37 Seg

fromFetch

31/36
Resources

Contributions 3

Questions 2

Sort by:

Want to see more contributions, questions and answers from the community?

Muy buena forma de manejar el Abort en el request, si lo usa Netflix es por algo, hice la prueba y en el Network Tab no se recibe respuesta, igual que con AbortController pero más facil de usar.

Perfecto, esto responde mi pregunta en el video anterior.
Ahora podemos implementar palabras aleatorias a PlatziWordle desde una API

const urlWord =
  "https://clientes.api.greenborn.com.ar/public-random-word?c=1&l=5";

const getFetch$ = fromFetch(urlWord).pipe(
  mergeMap((response) => {
    return response.json();
  }),
  catchError((err) => of(err))
);

getFetch$.subscribe(console.log);

fromFetch es un operador para realizar peticiones HTTP que internamente utiliza Fetch API.