Skip to content

Commit

Permalink
[fix] subapp2 add element for ssr off subapp
Browse files Browse the repository at this point in the history
  • Loading branch information
jchip committed Jan 22, 2021
1 parent 49d8481 commit 7cc0296
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/xarc-subapp/src/node/server-render-pipeline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export class SubAppServerRenderPipeline implements SubAppRenderPipeline {
ssrContent = `<!-- SSR prepare only for subapp ${name} -->`;
ssrProps = this.prepResult.props;
} else if (!this.options.ssr) {
ssrContent = `<!-- SSR disabled for subapp ${name} -->`;
ssrContent = `<!-- SSR disabled for subapp ${name} --><div id="subapp2-${name}"></div>`;
} else {
const ssrResult = this.framework.handleSSRSync(this.ssrData, this.prepResult);
ssrContent = `<div id="subapp2-${name}">${ssrResult.content}</div>`;
Expand Down

0 comments on commit 7cc0296

Please sign in to comment.