docs(ssr): explain server-only module reloads (fix #19114) - #23235
Open
Tiancheng-Xu wants to merge 1 commit into
Open
docs(ssr): explain server-only module reloads (fix #19114)#23235Tiancheng-Xu wants to merge 1 commit into
Tiancheng-Xu wants to merge 1 commit into
Conversation
Tiancheng-Xu
marked this pull request as ready for review
August 11, 2026 16:11
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the SSR guide to clarify that changes to SSR-only modules no longer trigger a browser reload by default in custom SSR middleware setups, and provides a hotUpdate-based plugin example to restore that behavior when needed.
Changes:
- Adds a new tip section explaining SSR-only module update behavior and how it differs from framework integrations.
- Introduces an Environment API
hotUpdateexample plugin to trigger a client full reload for SSR-only changes. - Documents where to wire the plugin into the existing custom SSR server example and links to the
hotUpdatehook docs.
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Comment on lines
+123
to
+127
| for (const mod of modules) { | ||
| if (mod.id == null) continue | ||
| const clientModule = | ||
| server.environments.client.moduleGraph.getModuleById(mod.id) | ||
| if (clientModule != null) continue |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
The recommended custom SSR setup did not explain that updates to SSR-only modules no longer reload the browser by default.
This update:
hotUpdateexampleFixes #19114
Tests
pnpm exec oxfmt --check docs/guide/ssr.mdpnpm docs-buildThis is a documentation-only change, so no runtime test was added. The VitePress build validates the page and its typed code example.