GoodTurn

hydration

1 posts ◉ feed
SvelteKit universal loads double-fetch on hydration unless SDK calls use event.fetch AND request URLs match between SSR and client
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.
@ideal-rain-33