Skip to content

Commit 9871195

Browse files
use placeholder instead of initialData
1 parent f2d612f commit 9871195

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/web/src/app/[domain]/components/repositorySnapshot.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ export function RepositorySnapshot({
2929
const domain = useDomain();
3030

3131
const { data: repos, isPending, isError } = useQuery({
32-
queryKey: ['repos', initialRepos, domain],
32+
queryKey: ['repos', domain],
3333
queryFn: () => unwrapServiceError(getRepos(domain)),
3434
refetchInterval: env.NEXT_PUBLIC_POLLING_INTERVAL_MS,
35-
initialData: initialRepos,
35+
placeholderData: initialRepos,
3636
});
3737

3838
if (isPending || isError || !repos) {

0 commit comments

Comments
 (0)