You might be using fetch with async/await wrong...

preview_player
Показать описание

#js #javascript #webdev
Рекомендации по теме
Комментарии
Автор

Did you mean 500 for the "probably our fault"? 400 would be the user's fault for sending a bad request (missing required param for example).

I love these short videos though, very well done

IainSimmons
Автор

The major issue is that the error part is still untyped (same in the initial code), and therefore super easy to mess-up.

IvanKleshnin
Автор

Learning how to handle response in PHP here... 🙏🏿

TheSerbianTube
Автор

Why should I use this instead of Axios?

FilippoBellei
Автор

wrong. 0:19 . fetch returns REJECTED PROMISE in internet problem for instace, .

korkut