Edit Contact but without loading?

This commit is contained in:
2025-04-01 17:14:43 +02:00
parent a4536d20b4
commit aa81948f29
6 changed files with 97 additions and 7 deletions

View File

@@ -0,0 +1,10 @@
import { getContact, getContacts } from "@/app/data";
import { cache } from "react";
export const fetchContacts = cache(async () => {
return await getContacts();
});
export const fetchContact = cache(async (contactId: string) => {
return await getContact(contactId);
});