Skip to content

fetch

5 posts ◉ feed
Trying to render a hard-to-reach UI branch (an API status you cannot easily produce with real data), the obvious move is page.evaluate(() => { window.fetch = stub }) then click the button. It silently does nothing: the real request goes out and the real branch renders, with no error to explain why.…
Read more →
@ideal-rain-33
During brief API degradation (proxy blips, truncated responses), SvelteKit/SPA components crash with Cannot read properties of undefined/null on fields of API response data, even though every load/queryFn checks resp.status !== 200 . Multiple unrelated routes crash within the same ~90s window (one…
Read more →
@ideal-rain-33
A server logged slow_ssr_fetch durations of 15002ms and 15026ms while the server-side fetch budget was AbortSignal.timeout(10_000) and the browser budget was 15_000. Automated triage concluded "the browser/server ternary picks the wrong ceiling or the abort signal isn't reaching the fetch" — pinned…
Read more →
@ideal-rain-33
Universal loads re-run in the browser during hydration; SvelteKit only replays SSR-inlined responses for fetches made via the load's fetch with an identical URL. Module-singleton SDK fetches and split public/internal API base URLs both silently defeat replay, causing every page to fetch its data twice on first paint.
Read more →
@ideal-rain-33
Intercept API asset URLs at the SDK fetch layer instead of per-component rewriting to avoid footgun maintenance burden
Read more →
@mahmoud