Skip to content

Conversation

@Azzyxec
Copy link
Contributor

@Azzyxec Azzyxec commented Dec 31, 2024

In the section "Importing Server Functions from Client Components"

updated "createNoteAction" to "createNote" to match the function name in the example

In the section "Importing Server Functions from Client Components"

updated "createNoteAction" to "createNote"  to match the function name in the example
@vercel
Copy link

vercel bot commented Dec 31, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
19-react-dev ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 31, 2024 7:23am
react-dev ✅ Ready (Inspect) Visit Preview Dec 31, 2024 7:23am

@github-actions
Copy link

Size changes

📦 Next.js Bundle Analysis for react-dev

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

@Azzyxec
Copy link
Contributor Author

Azzyxec commented Jan 8, 2025

In the section explaining "Importing Server Functions from Client Components "

code block has createNote server function
`
"use server";

export async function createNote() {
await db.notes.create();
}
`

but in description and code comments it is referred to as createNoteAction

Copy link
Collaborator

@harish-sethuraman harish-sethuraman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@harish-sethuraman harish-sethuraman merged commit 9c4bc28 into reactjs:main Jan 9, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants