エントリーの編集
エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
記事へのコメント6件
- 注目コメント
- 新着コメント
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
Safe Data Fetching in Modern JavaScript
While nice and simple, this code has a number of issues. You could say “oh, yeah, handle errors”,... While nice and simple, this code has a number of issues. You could say “oh, yeah, handle errors”, and rewrite it like this: That is an improvement, certainly, but still has issues. Here, we’re assuming user is in fact a user object… but that assumes that we got a 200 response. But fetch does not throw errors for non-200 statuses, so you could have actually received a 400 (bad request), 401 (not au







2023/01/17 リンク