mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2026-06-05 20:15:31 -04:00
fix: batch server requests from posts list
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
import { useEffect, useState } from "react";
|
||||
import { env } from "@/lib/env";
|
||||
import CountUp from "@/components/count-up";
|
||||
import { CountUp } from "@/components/count-up";
|
||||
import { incrementViews } from "@/lib/server/views";
|
||||
|
||||
const ViewCounter = ({ slug }: { slug: string }) => {
|
||||
@@ -36,4 +36,4 @@ const ViewCounter = ({ slug }: { slug: string }) => {
|
||||
);
|
||||
};
|
||||
|
||||
export default ViewCounter;
|
||||
export { ViewCounter };
|
||||
|
||||
Reference in New Issue
Block a user