Skip to content

Commit 1b6c448

Browse files
committed
fix: Support dangerouslySetInnerHTML={undefined} with
`renderToStringAsync`
1 parent c8e54a1 commit 1b6c448

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/index.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,9 @@ export async function renderToStringAsync(vnode, context) {
125125

126126
// Resolving nested Promises with a maximum depth of 25
127127
while (
128-
resolved.some((element) => typeof element.then === 'function') &&
128+
resolved.some(
129+
(element) => element && typeof element.then === 'function'
130+
) &&
129131
count++ < 25
130132
) {
131133
resolved = (await Promise.all(resolved)).flat();

0 commit comments

Comments
 (0)