How can I paginate between pages and still keep the URL parameters with Nextjs?
import Link from “next/link”; import React from “react”; import { Button } from “../ui/button”; import { Card, CardContent } from “../ui/card”; import { cn } from “@/lib/utils”; import { ChevronLeft, ChevronRight, Ellipsis } from “lucide-react”; type Props = { currentPage: number; count: number; perPage: number; }; const Pagination = async ({ currentPage, count, perPage }: […]
How can I paginate between pages and still keep the URL parameters with Nextjs?
import Link from “next/link”; import React from “react”; import { Button } from “../ui/button”; import { Card, CardContent } from “../ui/card”; import { cn } from “@/lib/utils”; import { ChevronLeft, ChevronRight, Ellipsis } from “lucide-react”; type Props = { currentPage: number; count: number; perPage: number; }; const Pagination = async ({ currentPage, count, perPage }: […]