fix(ui): disable aggressive polling on plan page to prevent layout thrashing
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user