Some notes on Server Components in edit/page.tsx

This commit is contained in:
2025-04-01 22:30:10 +02:00
parent b73c9311f5
commit a54d7b57ee
5 changed files with 20 additions and 1 deletions

View File

@@ -1,9 +1,11 @@
import { getContact, getContacts } from "@/app/data";
export const fetchContacts = async () => {
console.log("fetch contacts")
return await getContacts();
};
export const fetchContact = async (contactId: string) => {
console.log(`fetch contact ${contactId}`)
return await getContact(contactId);
};