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

fix(nuxt): use suspense for child pages on client-side navigation - #4677

Merged
pi0 merged 1 commit into
mainfrom
fix/nested-nav
Apr 29, 2022
Merged

fix(nuxt): use suspense for child pages on client-side navigation#4677
pi0 merged 1 commit into
mainfrom
fix/nested-nav

Conversation

@danielroe

Copy link
Copy Markdown
Member

🔗 Linked issue

resolvesnuxt/nuxt#13797

❓ 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

Context: #4422.

This PR amends that behaviour. Initial load still includes children in the parent's suspense, but further navigation wraps child pages in suspense (which is required if not reloading the parent on further nav).

Note: isHydrating is not reactive so it doesn't trigger a rerender.

📝 Checklist

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

@danielroedanielroe added bug Something isn't working ❗ p4-important Priority 4: bugs that violate documented behavior, or significantly impact perf labels Apr 27, 2022
@danielroe
danielroe requested a review from pi0April 27, 2022 22:48
@danielroedanielroe self-assigned this Apr 27, 2022
@netlify

netlifyBot commented Apr 27, 2022

Copy link
Copy Markdown

Deploy Preview for nuxt3-docs ready!

NameLink
🔨 Latest commit287de07
🔍 Latest deploy loghttps://app.netlify.com/sites/nuxt3-docs/deploys/6269c8333296a000084642d6
😎 Deploy Previewhttps://deploy-preview-4677--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 ab3971d into mainApr 29, 2022
@pi0
pi0 deleted the fix/nested-nav branch April 29, 2022 09:37
@pi0pi0 mentioned this pull request May 2, 2022
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

3.xbugSomething isn't working❗ p4-importantPriority 4: bugs that violate documented behavior, or significantly impact perf

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Navigation between routes with nested routes doesn't await data fetching

2 participants

@danielroe@pi0