From 6efd15397fd8ed5d3520494e2450a9b15b1cf42f Mon Sep 17 00:00:00 2001 From: real-zephex Date: Thu, 11 Apr 2024 02:45:11 +0530 Subject: tried to leverage caching of next js: trending and recent animes info are now cached along with all the animes when you search for one --- src/app/anime/top-airing/page.jsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/app/anime/top-airing/page.jsx') diff --git a/src/app/anime/top-airing/page.jsx b/src/app/anime/top-airing/page.jsx index e385629..2c4fb88 100644 --- a/src/app/anime/top-airing/page.jsx +++ b/src/app/anime/top-airing/page.jsx @@ -1,10 +1,11 @@ import styles from "./trending.module.css"; import Image from "next/image"; import Link from "next/link"; +import { preFetchAnimeInfo } from "../videoLinkfetcher"; export default async function Trending() { const data = await test(); - + preFetchAnimeInfo(data); return (
@@ -21,7 +22,7 @@ export default async function Trending() { >