-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: allow slot reorder after first chunk (#26)
* feat: allow slot reorder after first chunk
- Loading branch information
Showing
15 changed files
with
402 additions
and
5 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
16 changes: 16 additions & 0 deletions
16
...snapshots__/micro-frame-sse/ssr-reorder-after-first-chunk/renders.expected/loading.0.html
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<div> | ||
Host app | ||
</div> | ||
<div | ||
data-src="embed" | ||
id="GENERATED-0" | ||
> | ||
<noscript | ||
id="GENERATED-1" | ||
/> | ||
</div> | ||
<div | ||
data-from="test" | ||
data-slot="slot_1" | ||
id="GENERATED-2" | ||
/> |
44 changes: 44 additions & 0 deletions
44
...snapshots__/micro-frame-sse/ssr-reorder-after-first-chunk/renders.expected/loading.1.html
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<div> | ||
Host app | ||
</div> | ||
<div | ||
data-src="embed" | ||
id="GENERATED-0" | ||
> | ||
<noscript | ||
id="GENERATED-1" | ||
/> | ||
</div> | ||
<div | ||
data-from="test" | ||
data-slot="slot_1" | ||
id="GENERATED-2" | ||
> | ||
<p> | ||
test_html for slot_1 | ||
</p> | ||
<noscript | ||
id="GENERATED-3" | ||
/> | ||
</div> | ||
<div | ||
data-from="test" | ||
data-slot="slot_2" | ||
id="GENERATED-4" | ||
> | ||
<noscript | ||
id="GENERATED-5" | ||
/> | ||
</div> | ||
non-reorder data | ||
<div | ||
id="GENERATED-6" | ||
style="display:none" | ||
> | ||
<noscript | ||
id="GENERATED-7" | ||
/> | ||
</div> | ||
<script> | ||
function $af(d,a,e,l,g,h,k,b,f,c){c=$af;if(a&&!c[a])(c[a+="$"]||(c[a]=[])).push(d);else{e=document;l=e.getElementById("af"+d);g=e.getElementById("afph"+d);h=e.createDocumentFragment();k=l.childNodes;b=0;for(f=k.length;b<f;b++)h.appendChild(k.item(0));g&&g.parentNode.replaceChild(h,g);c[d]=1;if(a=c[d+"$"])for(b=0,f=a.length;b<f;b++)c(a[b])}};$af(0) | ||
</script> |
40 changes: 40 additions & 0 deletions
40
...snapshots__/micro-frame-sse/ssr-reorder-after-first-chunk/renders.expected/loading.2.html
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<div> | ||
Host app | ||
</div> | ||
<div | ||
data-src="embed" | ||
id="GENERATED-0" | ||
> | ||
<noscript | ||
id="GENERATED-1" | ||
/> | ||
</div> | ||
<div | ||
data-from="test" | ||
data-slot="slot_1" | ||
id="GENERATED-2" | ||
> | ||
<p> | ||
test_html for slot_1 | ||
</p> | ||
<noscript | ||
id="GENERATED-3" | ||
/> | ||
</div> | ||
<div | ||
data-from="test" | ||
data-slot="slot_2" | ||
id="GENERATED-4" | ||
> | ||
<noscript | ||
id="GENERATED-5" | ||
/> | ||
</div> | ||
non-reorder data | ||
<div | ||
id="GENERATED-6" | ||
style="display:none" | ||
/> | ||
<script> | ||
function $af(d,a,e,l,g,h,k,b,f,c){c=$af;if(a&&!c[a])(c[a+="$"]||(c[a]=[])).push(d);else{e=document;l=e.getElementById("af"+d);g=e.getElementById("afph"+d);h=e.createDocumentFragment();k=l.childNodes;b=0;for(f=k.length;b<f;b++)h.appendChild(k.item(0));g&&g.parentNode.replaceChild(h,g);c[d]=1;if(a=c[d+"$"])for(b=0,f=a.length;b<f;b++)c(a[b])}};$af(0) | ||
</script> |
54 changes: 54 additions & 0 deletions
54
...snapshots__/micro-frame-sse/ssr-reorder-after-first-chunk/renders.expected/loading.3.html
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
<div> | ||
Host app | ||
</div> | ||
<div | ||
data-src="embed" | ||
id="GENERATED-0" | ||
> | ||
<noscript | ||
id="GENERATED-1" | ||
/> | ||
</div> | ||
<div | ||
data-from="test" | ||
data-slot="slot_1" | ||
id="GENERATED-2" | ||
> | ||
<p> | ||
test_html for slot_1 | ||
</p> | ||
<noscript | ||
id="GENERATED-3" | ||
/> | ||
</div> | ||
<div | ||
data-from="test" | ||
data-slot="slot_2" | ||
id="GENERATED-4" | ||
> | ||
<noscript | ||
id="GENERATED-5" | ||
/> | ||
</div> | ||
non-reorder data | ||
<div | ||
id="GENERATED-6" | ||
style="display:none" | ||
/> | ||
<script> | ||
function $af(d,a,e,l,g,h,k,b,f,c){c=$af;if(a&&!c[a])(c[a+="$"]||(c[a]=[])).push(d);else{e=document;l=e.getElementById("af"+d);g=e.getElementById("afph"+d);h=e.createDocumentFragment();k=l.childNodes;b=0;for(f=k.length;b<f;b++)h.appendChild(k.item(0));g&&g.parentNode.replaceChild(h,g);c[d]=1;if(a=c[d+"$"])for(b=0,f=a.length;b<f;b++)c(a[b])}};$af(0) | ||
</script> | ||
<div | ||
id="GENERATED-7" | ||
style="display:none" | ||
> | ||
<p> | ||
test_html for slot_2 | ||
</p> | ||
<noscript | ||
id="GENERATED-8" | ||
/> | ||
</div> | ||
<script> | ||
$af(1) | ||
</script> |
50 changes: 50 additions & 0 deletions
50
...snapshots__/micro-frame-sse/ssr-reorder-after-first-chunk/renders.expected/loading.4.html
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<div> | ||
Host app | ||
</div> | ||
<div | ||
data-src="embed" | ||
id="GENERATED-0" | ||
> | ||
<noscript | ||
id="GENERATED-1" | ||
/> | ||
</div> | ||
<div | ||
data-from="test" | ||
data-slot="slot_1" | ||
id="GENERATED-2" | ||
> | ||
<p> | ||
test_html for slot_1 | ||
</p> | ||
<noscript | ||
id="GENERATED-3" | ||
/> | ||
</div> | ||
<div | ||
data-from="test" | ||
data-slot="slot_2" | ||
id="GENERATED-4" | ||
> | ||
<p> | ||
test_html for slot_2 | ||
</p> | ||
<noscript | ||
id="GENERATED-5" | ||
/> | ||
</div> | ||
non-reorder data | ||
<div | ||
id="GENERATED-6" | ||
style="display:none" | ||
/> | ||
<script> | ||
function $af(d,a,e,l,g,h,k,b,f,c){c=$af;if(a&&!c[a])(c[a+="$"]||(c[a]=[])).push(d);else{e=document;l=e.getElementById("af"+d);g=e.getElementById("afph"+d);h=e.createDocumentFragment();k=l.childNodes;b=0;for(f=k.length;b<f;b++)h.appendChild(k.item(0));g&&g.parentNode.replaceChild(h,g);c[d]=1;if(a=c[d+"$"])for(b=0,f=a.length;b<f;b++)c(a[b])}};$af(0) | ||
</script> | ||
<div | ||
id="GENERATED-7" | ||
style="display:none" | ||
/> | ||
<script> | ||
$af(1) | ||
</script> |
74 changes: 74 additions & 0 deletions
74
...snapshots__/micro-frame-sse/ssr-reorder-after-first-chunk/renders.expected/loading.5.html
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
<div> | ||
Host app | ||
</div> | ||
<div | ||
data-src="embed" | ||
id="GENERATED-0" | ||
> | ||
<noscript | ||
id="GENERATED-1" | ||
/> | ||
</div> | ||
<div | ||
data-from="test" | ||
data-slot="slot_1" | ||
id="GENERATED-2" | ||
> | ||
<p> | ||
test_html for slot_1 | ||
</p> | ||
<noscript | ||
id="GENERATED-3" | ||
/> | ||
</div> | ||
<div | ||
data-from="test" | ||
data-slot="slot_2" | ||
id="GENERATED-4" | ||
> | ||
<p> | ||
test_html for slot_2 | ||
</p> | ||
<noscript | ||
id="GENERATED-5" | ||
/> | ||
</div> | ||
non-reorder data | ||
<div | ||
id="GENERATED-6" | ||
style="display:none" | ||
/> | ||
<script> | ||
function $af(d,a,e,l,g,h,k,b,f,c){c=$af;if(a&&!c[a])(c[a+="$"]||(c[a]=[])).push(d);else{e=document;l=e.getElementById("af"+d);g=e.getElementById("afph"+d);h=e.createDocumentFragment();k=l.childNodes;b=0;for(f=k.length;b<f;b++)h.appendChild(k.item(0));g&&g.parentNode.replaceChild(h,g);c[d]=1;if(a=c[d+"$"])for(b=0,f=a.length;b<f;b++)c(a[b])}};$af(0) | ||
</script> | ||
<div | ||
id="GENERATED-7" | ||
style="display:none" | ||
/> | ||
<script> | ||
$af(1) | ||
</script> | ||
<div | ||
id="GENERATED-8" | ||
style="display:none" | ||
/> | ||
<div | ||
id="GENERATED-9" | ||
style="display:none" | ||
> | ||
next chunk for slot_1 | ||
<noscript | ||
id="GENERATED-10" | ||
/> | ||
</div> | ||
<div | ||
id="GENERATED-11" | ||
style="display:none" | ||
/> | ||
<div | ||
id="GENERATED-12" | ||
style="display:none" | ||
/> | ||
<script> | ||
$af(2);$af(3);$af(4);$af(5) | ||
</script> |
60 changes: 60 additions & 0 deletions
60
...snapshots__/micro-frame-sse/ssr-reorder-after-first-chunk/renders.expected/loading.6.html
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
<div> | ||
Host app | ||
</div> | ||
<div | ||
data-src="embed" | ||
id="GENERATED-0" | ||
/> | ||
<div | ||
data-from="test" | ||
data-slot="slot_1" | ||
id="GENERATED-1" | ||
> | ||
<p> | ||
test_html for slot_1 | ||
</p> | ||
next chunk for slot_1 | ||
</div> | ||
<div | ||
data-from="test" | ||
data-slot="slot_2" | ||
id="GENERATED-2" | ||
> | ||
<p> | ||
test_html for slot_2 | ||
</p> | ||
</div> | ||
non-reorder data | ||
<div | ||
id="GENERATED-3" | ||
style="display:none" | ||
/> | ||
<script> | ||
function $af(d,a,e,l,g,h,k,b,f,c){c=$af;if(a&&!c[a])(c[a+="$"]||(c[a]=[])).push(d);else{e=document;l=e.getElementById("af"+d);g=e.getElementById("afph"+d);h=e.createDocumentFragment();k=l.childNodes;b=0;for(f=k.length;b<f;b++)h.appendChild(k.item(0));g&&g.parentNode.replaceChild(h,g);c[d]=1;if(a=c[d+"$"])for(b=0,f=a.length;b<f;b++)c(a[b])}};$af(0) | ||
</script> | ||
<div | ||
id="GENERATED-4" | ||
style="display:none" | ||
/> | ||
<script> | ||
$af(1) | ||
</script> | ||
<div | ||
id="GENERATED-5" | ||
style="display:none" | ||
/> | ||
<div | ||
id="GENERATED-6" | ||
style="display:none" | ||
/> | ||
<div | ||
id="GENERATED-7" | ||
style="display:none" | ||
/> | ||
<div | ||
id="GENERATED-8" | ||
style="display:none" | ||
/> | ||
<script> | ||
$af(2);$af(3);$af(4);$af(5) | ||
</script> |
Oops, something went wrong.