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

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

Merged
merged 1 commit into from
Apr 29, 2022

Conversation

danielroe
Copy link
Member

πŸ”— Linked issue

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

@danielroe danielroe 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 pi0 April 27, 2022 22:48
@danielroe danielroe self-assigned this Apr 27, 2022
@netlify
Copy link

netlify bot commented Apr 27, 2022

βœ… Deploy Preview for nuxt3-docs ready!

Name Link
πŸ”¨ Latest commit 287de07
πŸ” Latest deploy log https://app.netlify.com/sites/nuxt3-docs/deploys/6269c8333296a000084642d6
😎 Deploy Preview https://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 main Apr 29, 2022
@pi0 pi0 deleted the fix/nested-nav branch April 29, 2022 09:37
@pi0 pi0 mentioned this pull request May 2, 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 bug Something isn't working ❗ p4-important Priority 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