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

docs(navigate-to): use await instead of return - #7734

Merged
atinux merged 2 commits into
nuxt:mainfrom
TheDutchCoder:main
Sep 22, 2022
Merged

docs(navigate-to): use await instead of return#7734
atinux merged 2 commits into
nuxt:mainfrom
TheDutchCoder:main

Conversation

@TheDutchCoder

@TheDutchCoderTheDutchCoder commented Sep 21, 2022

Copy link
Copy Markdown
Contributor

🔗 Linked issue

resolvesnuxt/nuxt#15002

❓ 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

  1. Changes the navigateTo example to use await instead of return, as return will throw a compilation error.
  2. Formats the block of code to be consistent with other blocks.

📝 Checklist

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

@codesandbox

Copy link
Copy Markdown

CodeSandbox logoCodeSandbox logo Open in CodeSandbox Web Editor | VS Code | VS Code Insiders

@netlify

netlifyBot commented Sep 21, 2022

Copy link
Copy Markdown

Deploy Preview for nuxt3-docs ready!

NameLink
🔨 Latest commit7b4db06
🔍 Latest deploy loghttps://app.netlify.com/sites/nuxt3-docs/deploys/632b65b569fb570009f9d165
😎 Deploy Previewhttps://deploy-preview-7734--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.

@TheDutchCoderTheDutchCoder changed the title docs: 📝 Use await instead of returndocs(navigate-to): Use await instead of returnSep 21, 2022
@TheDutchCoderTheDutchCoder changed the title docs(navigate-to): Use await instead of returndocs(navigate-to): use await instead of returnSep 21, 2022
Comment threaddocs/content/3.api/3.utils/navigate-to.md Outdated

@danielroedanielroe left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! ❤️

@danielroedanielroe added the documentation Improvements or additions to documentation label Sep 22, 2022
@atinux
atinux merged commit f4f6ed4 into nuxt:mainSep 22, 2022
@danielroedanielroe mentioned this pull request Oct 9, 2022
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

3.xdocumentationImprovements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

navigateTo examples throw errors

4 participants

@TheDutchCoder@danielroe@DamianGlowala@atinux