Skip to content

Commit

Permalink
fix(plugin-runtime): ssr stream test case (#3500)
Browse files Browse the repository at this point in the history
* fix: ssr stream test case

* docs: add changeset
  • Loading branch information
zllkjc committed Apr 19, 2023
1 parent ead58c8 commit 1b3afa0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
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

0 comments on commit 1b3afa0

Please sign in to comment.