Skip to content

Commit

Permalink
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/02-app/02-api-reference/04-functions/cookies.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ A method that takes a cookie name and returns a `boolean` based on if the cookie
import { cookies } from 'next/headers'

export default function Page() {
const cookiesList = cookies()
const hasCookie = cookiesList.has('theme')
const cookieStore = cookies()
const hasCookie = cookieStore.has('theme')
return '...'
}
```
Expand Down

0 comments on commit a8b88b7

Please sign in to comment.