Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(plugin-runtime): ssr stream test case #3500

Merged
merged 2 commits into from
Apr 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions .changeset/rotten-ligers-shout.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@modern-js/runtime': patch
---

fix: ssr stream test case
fix: 淇 ssr stream 娴嬭瘯鐢ㄤ緥
2 changes: 1 addition & 1 deletion packages/runtime/plugin-runtime/src/ssr/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const ssr = (config: SSRPluginConfig): Plugin => ({
setup: () => {
const mockResp = mockResponse();

if (!config.inlineScript) {
if (config.inlineScript === false) {
window._SSR_DATA = parsedJSONFromElement(SSR_DATA_JSON_ID);
window._ROUTER_DATA = parsedJSONFromElement(ROUTER_DATA_JSON_ID);
}
Expand Down