The Ugly Truth: All Popular fetch() Wrappers Do It WrongPlease have a look at the following two pieces of code. The purpose is to do something (writing to the console) if the value of x is false. const x = false; try { if (!x) { throw new Error("x is false"); } } catch { console.log('x...Mar 10, 2025 · 4 min readwebjose.hashnode.dev
Svelte Reactivity: Let's Talk About $EffectsIn the previous article of the series, we learned the basics of Svelte v5’s reactivity system: The basic runes. We learned that this version of Svelte now reacts to things in runtime rather than depending on the static code analysis provided in previ...Feb 19, 2025 · 17 min readwebjose.hashnode.dev
How to Use TypeScript to Accumulate Types: Typing ALL possible fetch() ResultsWhen I started re-writing (with my team) our application in TypeScript and Svelte (it was in JavaScript and React which we all hate), I was faced with a problem: How can I safely type all possible bodies of an HTTP response? Does this ring a bell t...Nov 30, 2024 · 8 min readwebjose.hashnode.dev
Learning the new Svelte v5 Reactivity SystemSo Svelte v5, the newest rendition of what probably is the best front-end framework in existence, has been released and it is vastly different from its previous version. The main difference lies at its core: How reactivity of variables is implemented...Oct 24, 2024 · 12 min readwebjose.hashnode.dev
Finally! Cancel Web Workers' Work Without Terminating the WorkerIf you have never worked with web workers, the title doesn't really evoke emotion. Am I right? But if you have, you know that as of today, there is no equivalent to what AbortController does for fetch. Well, let's change that. Meet @wjfe/async-worker...3ESMAug 26, 2024 · 9 min readwebjose.hashnode.dev