lint fix and format

This commit is contained in:
MapleLeaf
2022-01-07 15:11:05 -06:00
parent 81f28fecf2
commit 899acec2b6
6 changed files with 13 additions and 10 deletions

View File

@@ -27,7 +27,7 @@ const assets = await AssetBuilder.create(fromProjectRoot(".asset-cache"), [
])
async function render(res: Response, element: React.ReactElement) {
element = <React.Suspense fallback={null}>{element}</React.Suspense>
element = <React.Suspense fallback={<></>}>{element}</React.Suspense>
await ssrPrepass(element)
res.type("html").send(`<!DOCTYPE html>\n${renderToStaticMarkup(element)}`)
}