2026-11-13
Where should this loader live?
20 XP
Mission briefing
A loader fetches data for a small widget, but the parent route also renders many pages. What is the safest optimization?
routeLoader$PerformanceScope
Source snippet
export const useWidgetData = routeLoader$(async () => {
return getWidgetData();
});Select your answer first. The correction unlocks only after sign in, so the saved score stays fair.