Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: improve data fetching docs #21197

Merged
merged 2 commits into from May 28, 2023
Merged

Conversation

jongmin4943
Copy link
Contributor

πŸ”— Linked issue

❓ Type of change

  • πŸ“– Documentation (updates to the documentation, readme or JSdoc annotations)
  • 🐞 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)
  • 🧹 Chore (updates to the build process or auxiliary tools and libraries)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

change window.__NUXT__ to useNuxtApp.payload

useFetch and useAsyncData use keys to prevent refetching the same data (for example when navigating back to a page previously rendered). However, since nuxt/framework#8885, Cache won't be used when doing client-side navigation back to same page and fresh data will be fetched.

describe the execute method with the refresh method together

πŸ“ Checklist

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

@nuxt-studio
Copy link

nuxt-studio bot commented May 28, 2023

βœ… Live Preview ready!

Name Edit Preview Latest Commit
Nuxt Docs Edit on Studio β†—οΈŽ View Live Preview 3eb6098

Copy link
Member

@danielroe danielroe left a comment

Choose a reason for hiding this comment

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

Thank you ❀️

@danielroe danielroe changed the title docs : correct data-fetching description docs: improve data fetching docs May 28, 2023
@danielroe danielroe merged commit e864c01 into nuxt:main May 28, 2023
1 check passed
@github-actions github-actions bot mentioned this pull request May 28, 2023
@jongmin4943 jongmin4943 deleted the docs-data-fetching branch May 29, 2023 01:11
This was referenced May 29, 2023
Sign up for free to 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.

None yet

2 participants