diff options
| author | real-zephex <[email protected]> | 2024-04-12 11:39:57 +0530 |
|---|---|---|
| committer | real-zephex <[email protected]> | 2024-04-12 11:39:57 +0530 |
| commit | f6ecf3a393ba50bb74ce83ad2bc723e2670f7215 (patch) | |
| tree | 676f00108119d29253ffe0b658c62575788199e4 /src/app/kdrama/components/search.jsx | |
| parent | fix: fixed kdrama page and made it available (diff) | |
| download | dramalama-f6ecf3a393ba50bb74ce83ad2bc723e2670f7215.tar.xz dramalama-f6ecf3a393ba50bb74ce83ad2bc723e2670f7215.zip | |
minor fixes
Diffstat (limited to 'src/app/kdrama/components/search.jsx')
| -rw-r--r-- | src/app/kdrama/components/search.jsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/app/kdrama/components/search.jsx b/src/app/kdrama/components/search.jsx index 5444c89..0dac544 100644 --- a/src/app/kdrama/components/search.jsx +++ b/src/app/kdrama/components/search.jsx @@ -6,6 +6,7 @@ import { FaSearch } from "react-icons/fa"; import FetchSearchTitle from "./searchQuery"; import Image from "next/image"; import Link from "next/link"; +import { PreFetchAnimeInfo } from "./cacher"; export default function DramaSearch() { const [title, setTitle] = useState(""); @@ -15,6 +16,7 @@ export default function DramaSearch() { const handleSearch = async (title) => { setLoadingText(true); const data = await FetchSearchTitle(title); + PreFetchAnimeInfo(data); setLoadingText(false); setInfoTitle(data); }; @@ -32,7 +34,7 @@ export default function DramaSearch() { } }} ></input> - </div> + </div> {loadingText && ( <p className={styles.LoadingText}>Wait a moment...</p> |