Skip to content

docs: move fetchContentNavigation into function - #1403

Merged
atinux merged 1 commit into
nuxt:mainfrom
nobkd:patch-1
Aug 1, 2022
Merged

docs: move fetchContentNavigation into function#1403
atinux merged 1 commit into
nuxt:mainfrom
nobkd:patch-1

Conversation

@nobkd

@nobkdnobkd commented Aug 1, 2022

Copy link
Copy Markdown
Contributor

🔗 Linked issue

❓ Type of change

  • 📖 Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • 👌 Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description

The documentation was missing that fetchContentNavigation() has to be in a function:

[nuxt] [request error] [nuxt] [asyncData] handler must be a function.
at createError (./node_modules/h3/dist/index.mjs:196:15) at Server.nodeHandler (./node_modules/h3/dist/index.mjs:386:21) at processTicksAndRejections (node:internal/process/task_queues:96:5)

This is also visible in the example

📝 Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

@netlify

netlifyBot commented Aug 1, 2022

Copy link
Copy Markdown

Deploy Preview for nuxt-content ready!

Built without sensitive environment variables

NameLink
🔨 Latest commit53e02e1
🔍 Latest deploy loghttps://app.netlify.com/sites/nuxt-content/deploys/62e8584556453800085f5158
😎 Deploy Previewhttps://deploy-preview-1403--nuxt-content.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@atinux
atinux merged commit 83b72d6 into nuxt:mainAug 1, 2022
@nobkd
nobkd deleted the patch-1 branch August 2, 2022 01:34
@farnabazfarnabaz mentioned this pull request Aug 12, 2022
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@nobkd@atinux