Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion apps/app/src/hooks/use-framework-update-status.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,14 @@ export function useFrameworkUpdateStatus(
},
{
fallbackData: options?.fallbackData,
revalidateOnMount: !options?.fallbackData,
// Always revalidate on mount, even when fallbackData is provided.
// fallbackData is only a fast first paint — without this, SWR treats
// the server-rendered snapshot as authoritative forever and skips the
// client fetch, so users don't see newly-available upgrades after the
// feature flag is flipped, after a sync on a sibling framework, or
// whenever the Next.js router cache serves a stale RSC. Short of
// signing out and back in.
revalidateOnMount: true,
revalidateOnFocus: true,
},
);
Expand Down
Loading