fix(ui): disable aggressive polling on plan page to prevent layout thrashing

This commit is contained in:
2026-05-19 18:56:54 -07:00
parent d12e178b13
commit 273008e14b
2 changed files with 22 additions and 1 deletions

View File

@@ -42,7 +42,7 @@ export default function PlanPageV2() {
const { data: plan, error, mutate: mutatePlan } = useSWR<Plan>(
projectId ? `/api/projects/${projectId}/plan` : null,
fetcher,
{ refreshInterval: 15000, dedupingInterval: 5000 }
{ revalidateOnFocus: false, revalidateIfStale: false }
);
// Wrapper for child components to update SWR cache optimally