diff --git a/src/app/(sidebar)/loaders.ts b/src/app/(sidebar)/loaders.ts index f99c6a1..f830945 100644 --- a/src/app/(sidebar)/loaders.ts +++ b/src/app/(sidebar)/loaders.ts @@ -1,10 +1,9 @@ import { getContact, getContacts } from "@/app/data"; -import { cache } from "react"; -export const fetchContacts = cache(async () => { +export const fetchContacts = async () => { return await getContacts(); -}); +}; -export const fetchContact = cache(async (contactId: string) => { +export const fetchContact = async (contactId: string) => { return await getContact(contactId); -}); +};