From 5efd8568ca2690cf5edfbd9de87807d9786b7d06 Mon Sep 17 00:00:00 2001 From: Nevo David Date: Sun, 10 Mar 2024 13:56:12 +0700 Subject: [PATCH] feat: another attempt with transition --- .../src/components/analytics/stars.table.component.tsx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/apps/frontend/src/components/analytics/stars.table.component.tsx b/apps/frontend/src/components/analytics/stars.table.component.tsx index 75c1bc16..fd1c99bf 100644 --- a/apps/frontend/src/components/analytics/stars.table.component.tsx +++ b/apps/frontend/src/components/analytics/stars.table.component.tsx @@ -1,10 +1,5 @@ import { - FC, - startTransition, - useCallback, - useEffect, - useMemo, - useState, + FC, useCallback, useEffect, useMemo, useState, useTransition, } from 'react'; import { UtcToLocalDateRender } from '@gitroom/react/helpers/utc.date.render'; import { Button } from '@gitroom/react/form/button'; @@ -96,6 +91,7 @@ export const StarsTableComponent = () => { const key = searchParams.get('key'); const state = searchParams.get('state'); const [loading, setLoading] = useState(false); + const [, startTransition] = useTransition(); const starsCallback = useCallback( async (path: string) => {