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

feat(nuxt): experimental server component islands #5689

Merged
merged 90 commits into from
Nov 24, 2022
Merged

Conversation

danielroe
Copy link
Member

@danielroe danielroe commented Jul 1, 2022

πŸ”— Linked issue

❓ 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 PR adds support for rendering individual components through a special GET request to /__nuxt_render (implementing RFC https://github.com/nuxt/framework/discussions/666).

In addition to providing the basis for server-only components (#5688) it can also provide a way to render individual components for future testing or devtools functionality.

Note that this only supports components that are already globally registered in the server.

If you encounter any issues with rendering async components in this way, please also see vuejs/core#6207.

πŸ“ Checklist

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

@danielroe danielroe added enhancement New feature or request 🍰 p2-nice-to-have Priority 2: nothing is broken but it's worth addressing labels Jul 1, 2022
@danielroe danielroe requested a review from pi0 July 1, 2022 10:47
@danielroe danielroe self-assigned this Jul 1, 2022
@netlify
Copy link

netlify bot commented Jul 1, 2022

βœ… Deploy Preview for nuxt3-docs canceled.

Name Link
πŸ”¨ Latest commit 2484081
πŸ” Latest deploy log https://app.netlify.com/sites/nuxt3-docs/deploys/636e472d26f7980008784de0

packages/nuxt/src/core/runtime/nitro/renderer.ts Outdated Show resolved Hide resolved
packages/nuxt/src/core/runtime/nitro/renderer.ts Outdated Show resolved Hide resolved
packages/nuxt/src/core/runtime/nitro/renderer.ts Outdated Show resolved Hide resolved
@danielroe
Copy link
Member Author

@pi0 What's the status of this PR?

@pi0
Copy link
Member

pi0 commented Nov 16, 2022

Update: This PR is really in a good state and is ready to be landed as an experimental feature. I've also worked on inlined styles to be working on production (7c66c41) and added experimental.componentIslands flag.

Landing this feature for 3.1.0 alongside .server components. (Landing for 3.0.0 is really hard since we plan release today sorry for delays).

@pi0 pi0 merged commit ab125bd into main Nov 24, 2022
@pi0 pi0 deleted the feat/selective-rendering branch November 24, 2022 12:24
@pi0 pi0 changed the title feat(nuxt): server component islands feat(nuxt): experimental server component islands Nov 24, 2022
@josueayala27
Copy link

🫢🏻🫢🏻🫢🏻 @danielroe

@pi0 pi0 mentioned this pull request Dec 15, 2022
6 tasks
@danielroe danielroe mentioned this pull request Jan 6, 2023
7 tasks
@danielroe danielroe added the 3.x label Jan 19, 2023
@danielroe danielroe mentioned this pull request Jan 20, 2023
danielroe added a commit that referenced this pull request Jan 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
3.x enhancement New feature or request 🍰 p2-nice-to-have Priority 2: nothing is broken but it's worth addressing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants