Repository navigation
fix(pages): hydrate islands added while the dev server runs - #870
Conversation
|
Two issues, slop explanation:
|
|
@codex review |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 0c66ff0967
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
- Rebuild the islands renderer when a page or layout changes, so a page that gains its first island gets the client script. This replaces the rendered-HTML `data-island=` check, which also ran in production and matched pages that only show that text. - Skip a missing island file in the client entry without dropping it from the manifest, and rebuild the entry when a recorded island file is deleted or comes back. - Record a Markdown page's islands when it is saved. Markdown pages emit their own wrappers, so no page transform records them. - A page deleted before its islands are read is skipped instead of throwing. - Tests: shared unit coverage in packages/void, fixture dirs from the shared helper, and no `server.listen()` (it started the optimizer). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
@codex review |
|
Codex Review: Didn't find any major issues. Nice work! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
When an island page gains a new island import while the dev server is running, the new island never hydrates. The page HTML includes its
data-islandwrapper, butvirtual:void-islands-clientkeeps serving the module it generated before the edit, so the island has no loader. Reloading doesn't help; only a server restart does. Reproduction: https://github.com/liang-demos/void-vue-island-hmr-reproThe island manifest now keeps a reference to the dev server and rebuilds the islands client entry in dev when:
A page that gains its first island also needs the islands client script. The renderer decides this from the page and layout sources, so it is now rebuilt when a page or layout changes. Production output is unchanged.
The React, Vue, Svelte and Solid adapters pass the server to the manifest from
configureServer.🤖 Generated with Claude Code