Error Handling for fetch in TypeScript The following post describes why and how you do error handling for fetch. Why Care? When you write code that does not handle errors, the code may break at runtime and when deployed to production. Getting ...
Encoding Encoding in our context means converting a type to a string so we can save it to the web browser's local storage. In soundly typed languages, this operation will never fail, but that is not true in JavaScript which TypeScript compiles to.