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

docs: add note about fetching data on initial load#7120

Merged
pi0 merged 3 commits intomainfrom
docs/client-data-fetching-note
Sep 3, 2022
Merged

docs: add note about fetching data on initial load#7120
pi0 merged 3 commits intomainfrom
docs/client-data-fetching-note

Conversation

@danielroe
Copy link
Copy Markdown
Member

🔗 Linked issue

resolves nuxt/nuxt#14694

❓ 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

This adds a note about a limitation of server: false data fetching and updates a couple of other minor inaccuracies..

📝 Checklist

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

@danielroe danielroe added the documentation Improvements or additions to documentation label Aug 31, 2022
@danielroe danielroe requested a review from pi0 August 31, 2022 20:41
@danielroe danielroe self-assigned this Aug 31, 2022
@netlify
Copy link
Copy Markdown

netlify Bot commented Aug 31, 2022

Deploy Preview for nuxt3-docs ready!

Name Link
🔨 Latest commit dfc5db4
🔍 Latest deploy log https://app.netlify.com/sites/nuxt3-docs/deploys/631334127de7ca000900c897
😎 Deploy Preview https://deploy-preview-7120--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.

Copy link
Copy Markdown
Member

@pi0 pi0 left a comment

Choose a reason for hiding this comment

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

Thanks for pointing this out. It seems a buggy behavior to me since we could make data available after awaiting for client-side only. But let's document warning until fixing (read topic. hydration is tricky indeed)

@pi0 pi0 merged commit 0f1a746 into main Sep 3, 2022
@pi0 pi0 deleted the docs/client-data-fetching-note branch September 3, 2022 11:02
@danielroe
Copy link
Copy Markdown
Member Author

I don't think we can wait in setup, or we will cause a hydration error.

This was referenced Sep 9, 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

useAsyncData's data._rawValue is null

3 participants