mirror of
https://github.com/withastro/astro.git
synced 2024-12-16 21:46:22 -05:00
[ci] format
This commit is contained in:
parent
5986517b4f
commit
ef7ba4507a
2 changed files with 10 additions and 12 deletions
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
// Write your component code in this file!
|
||||
export interface Props {
|
||||
prefix?: string
|
||||
prefix?: string;
|
||||
}
|
||||
---
|
||||
|
||||
|
|
|
@ -142,7 +142,7 @@ async function renderToStaticNodeStreamAsync(vnode) {
|
|||
async function readResult(stream) {
|
||||
const reader = stream.getReader();
|
||||
let result = '';
|
||||
const decoder = new TextDecoder('utf-8')
|
||||
const decoder = new TextDecoder('utf-8');
|
||||
while (true) {
|
||||
const { done, value } = await reader.read();
|
||||
if (done) {
|
||||
|
@ -160,9 +160,7 @@ async function readResult(stream) {
|
|||
}
|
||||
|
||||
async function renderToReadableStreamAsync(vnode) {
|
||||
return await readResult(
|
||||
await ReactDOM.renderToReadableStream(vnode),
|
||||
);
|
||||
return await readResult(await ReactDOM.renderToReadableStream(vnode));
|
||||
}
|
||||
|
||||
export default {
|
||||
|
|
Loading…
Reference in a new issue