Some notes on Server Components in edit/page.tsx
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user