Skip to content

Commit

Permalink
docs: Adds missing export from Server Actions docs (#51418)
Browse files Browse the repository at this point in the history
  • Loading branch information
manovotny committed Jun 16, 2023
1 parent cca9dd1 commit cd68352
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -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 })
}
Expand Down

0 comments on commit cd68352

Please sign in to comment.