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

feat(nuxt): experimental server component islands - #5689

Merged
pi0 merged 90 commits into
mainfrom
feat/selective-rendering
Nov 24, 2022
Merged

feat(nuxt): experimental server component islands #5689
pi0 merged 90 commits into
mainfrom
feat/selective-rendering

Conversation

@danielroe

@danielroedanielroe commented Jul 1, 2022

Copy link
Copy Markdown
Member

🔗 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.

@danielroedanielroe 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 pi0July 1, 2022 10:47
@danielroedanielroe self-assigned this Jul 1, 2022
@netlify

netlifyBot commented Jul 1, 2022

Copy link
Copy Markdown

Deploy Preview for nuxt3-docs canceled.

NameLink
🔨 Latest commit2484081
🔍 Latest deploy loghttps://app.netlify.com/sites/nuxt3-docs/deploys/636e472d26f7980008784de0

@danielroe
danielroeforce-pushed the feat/selective-rendering branch from c617477 to 038c449CompareJuly 1, 2022 10:57
Comment threadpackages/nuxt/src/core/runtime/nitro/renderer.ts Outdated
Comment threadpackages/nuxt/src/core/runtime/nitro/renderer.ts Outdated
Comment threadpackages/nuxt/src/core/runtime/nitro/renderer.ts Outdated
Comment threadpackages/nuxt/src/core/runtime/nitro/renderer.ts Outdated
Comment threadpackages/nuxt/src/pages/module.ts Outdated
@danielroe

Copy link
Copy Markdown
MemberAuthor

@pi0 What's the status of this PR?

@pi0

pi0 commented Nov 16, 2022

Copy link
Copy Markdown
Member

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 mainNov 24, 2022
@pi0
pi0 deleted the feat/selective-rendering branch November 24, 2022 12:24
@pi0pi0 changed the title feat(nuxt): server component islands feat(nuxt): experimental server component islands Nov 24, 2022
@josueayala27

Copy link
Copy Markdown

🫶🏻🫶🏻🫶🏻 @danielroe

@pi0pi0 mentioned this pull request Dec 15, 2022
6 tasks
@danielroedanielroe mentioned this pull request Jan 6, 2023
7 tasks
@danielroedanielroe mentioned this pull request Jan 20, 2023
danielroe added a commit that referenced this pull request Jan 21, 2023
Co-authored-by: Pooya Parsa <pooya@pi0.io>
@danielroedanielroe mentioned this pull request Mar 17, 2023
12 tasks
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

3.xenhancementNew feature or request🍰 p2-nice-to-havePriority 2: nothing is broken but it's worth addressing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@danielroe@pi0@Sunhat@atinux@josueayala27