mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2026-07-30 13:15:24 -04:00
some very minor refactoring/fixing
This commit is contained in:
@@ -2,7 +2,7 @@ import useSWR from "swr";
|
||||
import { fetcher } from "../../lib/fetcher";
|
||||
import Loading from "../loading/Loading";
|
||||
|
||||
export default function Counter({ slug }) {
|
||||
export default function Hits({ slug }) {
|
||||
// start fetching repos from API immediately
|
||||
const { data, error } = useSWR(`/api/hits/?slug=${encodeURIComponent(slug)}`, fetcher, {
|
||||
// avoid double (or more) counting views
|
||||
|
||||
Reference in New Issue
Block a user