Unverified Commit cd683523 authored by Michael Novotny's avatar Michael Novotny Committed by GitHub

docs: Adds missing `export` from Server Actions docs (#51418)

parent cca9dd12
......@@ -38,7 +38,7 @@ export default function AddToCart({ productId }) {
```jsx filename="app/actions.js" highlight={1, 3}
'use server'
async function addItem(data) {
export async function addItem(data) {
const cartId = cookies().get('cartId')?.value
await saveToDb({ cartId, data })
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment