perf(problemset): add prefetch to problem links for faster navigation

This commit is contained in:
cfngc4594 2025-04-16 17:04:28 +08:00
parent 58222795fe
commit a7ddd80d09

View File

@ -58,7 +58,7 @@ export default async function ProblemsetPage() {
) : null)}
</TableCell>
<TableCell className="py-2.5">
<Link href={`/problems/${problem.id}`} className="hover:text-blue-500">
<Link href={`/problems/${problem.id}`} className="hover:text-blue-500" prefetch>
{index + 1}. {problem.title}
</Link>
</TableCell>