Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

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

Merged
merged 1 commit into from
Aug 29, 2022

Conversation

danielroe
Copy link
Member

πŸ”— Linked issue

resolves nuxt/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.

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

netlify bot commented Aug 29, 2022

βœ… Deploy Preview for nuxt3-docs ready!

Name Link
πŸ”¨ Latest commit 8c73987
πŸ” Latest deploy log https://app.netlify.com/sites/nuxt3-docs/deploys/630c7b4b246c2a0008e75913
😎 Deploy Preview https://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 merged commit 0087e7b into main Aug 29, 2022
@pi0 pi0 deleted the docs/options-async-data branch August 29, 2022 10:02
@pi0 pi0 mentioned this pull request Sep 1, 2022
@danielroe danielroe added the 3.x label Jan 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
3.x documentation Improvements or additions to documentation test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

options api support for data fetching
2 participants