Skip to content

Commit

Permalink
This isn't needed
Browse files Browse the repository at this point in the history
  • Loading branch information
charlie-hadden committed Jun 6, 2024
1 parent eadaf4f commit 5f87735
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions packages/astro-suspense/src/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,5 @@ function transformSuspenseStream(
}

function suspenseChunk(result: { id: number; content: string }): string {
return `<template astro-suspense-id="${result.id}">${result.content.replace(
/<\/template>/g,
"\\x3c/template>",
)}</template><script astro-suspense-id="${
result.id
}">window.astroSuspenseLoad(${result.id})</script>`;
return `<template astro-suspense-id="${result.id}">${result.content}</template><script astro-suspense-id="${result.id}">window.astroSuspenseLoad(${result.id})</script>`;
}

0 comments on commit 5f87735

Please sign in to comment.