We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
yyx990803
posva
Learn more about funding links in repositories.
Report abuse
1 parent 1866033 commit 67901e7Copy full SHA for 67901e7
test/ssr/ssr-string.spec.js
@@ -694,6 +694,34 @@ describe('SSR: renderToString', () => {
694
})
695
696
697
+ // #11963, #10391
698
+ it('renders async children passed in slots', done => {
699
+ const Parent = {
700
+ template: `<div><slot name="child"/></div>`
701
+ }
702
+ const Child = {
703
+ template: `<p>child</p>`
704
705
+ renderVmWithOptions({
706
+ template: `
707
+ <Parent>
708
+ <template #child>
709
+ <Child/>
710
+ </template>
711
+ </Parent>
712
+ `,
713
+ components: {
714
+ Parent,
715
+ Child: () => Promise.resolve(Child)
716
717
+ }, result => {
718
+ expect(result).toContain(
719
+ `<div data-server-rendered="true"><p>child</p></div>`
720
+ )
721
+ done()
722
+ })
723
724
+
725
it('everything together', done => {
726
renderVmWithOptions({
727
template: `
0 commit comments