mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-14 12:04:39 +00:00
prevent hanging with large numbers of links (#604)
This commit is contained in:
12
test/apps/export/src/routes/boom/[a]/[b].svelte
Normal file
12
test/apps/export/src/routes/boom/[a]/[b].svelte
Normal file
@@ -0,0 +1,12 @@
|
||||
<script context="module">
|
||||
export function preload({ params }) {
|
||||
return params;
|
||||
}
|
||||
</script>
|
||||
|
||||
<script>
|
||||
export let a;
|
||||
export let b;
|
||||
</script>
|
||||
|
||||
<p>{a}/{b}</p>
|
||||
15
test/apps/export/src/routes/boom/[a]/index.svelte
Normal file
15
test/apps/export/src/routes/boom/[a]/index.svelte
Normal file
@@ -0,0 +1,15 @@
|
||||
<script context="module">
|
||||
export function preload({ params }) {
|
||||
return params;
|
||||
}
|
||||
</script>
|
||||
|
||||
<script>
|
||||
export let a;
|
||||
|
||||
const list = Array(20).fill().map((_, i) => i + 1);
|
||||
</script>
|
||||
|
||||
{#each list as b}
|
||||
<a href="boom/{a}/{b}">{a}/{b}</a>
|
||||
{/each}
|
||||
7
test/apps/export/src/routes/boom/index.svelte
Normal file
7
test/apps/export/src/routes/boom/index.svelte
Normal file
@@ -0,0 +1,7 @@
|
||||
<script>
|
||||
const list = Array(20).fill().map((_, i) => i + 1);
|
||||
</script>
|
||||
|
||||
{#each list as a}
|
||||
<a href="boom/{a}">{a}</a>
|
||||
{/each}
|
||||
@@ -7,3 +7,4 @@
|
||||
<a href= >empty anchor #4</a>
|
||||
<a href>empty anchor #5</a>
|
||||
<a>empty anchor #6</a>
|
||||
<a href="boom">boom</a>
|
||||
Reference in New Issue
Block a user