Skip to content

Commit c4a5832

Browse files
no delay needed
1 parent 34efb79 commit c4a5832

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

components/post-views.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ function ViewCount({ slug, prev }: { slug: string; prev: number }) {
1515
const { data } = useQuery({
1616
queryKey: ['postViews', slug],
1717
queryFn: async () => {
18-
// Add artificial delay for smoother UI transition when switching between posts
19-
await new Promise((resolve) => setTimeout(resolve, 500))
2018
return getPostViews({ slug })
2119
},
2220
})

0 commit comments

Comments
 (0)