Skip to content
This repository was archived by the owner on Apr 6, 2023. It is now read-only.
/frameworkPublic archive

docs: add information on how to use options api asyncData - #7019

Merged
pi0 merged 1 commit into
mainfrom
docs/options-async-data
Aug 29, 2022
Merged

docs: add information on how to use options api asyncData#7019
pi0 merged 1 commit into
mainfrom
docs/options-async-data

Conversation

@danielroe

Copy link
Copy Markdown
Member

🔗 Linked issue

resolvesnuxt/nuxt#14732

❓ 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

We have support for asyncData with options API syntax. This PR documents it (with a note that it is likely to change!) and adds a test to ensure it does not break.

Might be worth a discussion about how we want to continue to support this, and (if so) whether it needs any additional features ways of passing options to asyncData.

📝 Checklist

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

@danielroedanielroe added documentation Improvements or additions to documentation test labels Aug 29, 2022
@danielroe
danielroe requested a review from pi0August 29, 2022 08:39
@danielroedanielroe self-assigned this Aug 29, 2022
@netlify

netlifyBot commented Aug 29, 2022

Copy link
Copy Markdown

Deploy Preview for nuxt3-docs ready!

NameLink
🔨 Latest commit8c73987
🔍 Latest deploy loghttps://app.netlify.com/sites/nuxt3-docs/deploys/630c7b4b246c2a0008e75913
😎 Deploy Previewhttps://deploy-preview-7019--nuxt3-docs.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.

pi0
pi0 approved these changes Aug 29, 2022
@pi0
pi0 merged commit 0087e7b into mainAug 29, 2022
@pi0
pi0 deleted the docs/options-async-data branch August 29, 2022 10:02
@pi0pi0 mentioned this pull request Sep 1, 2022
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

3.xdocumentationImprovements or additions to documentationtest

Projects

None yet

Development

Successfully merging this pull request may close these issues.

options api support for data fetching

2 participants

@danielroe@pi0