You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think Marvin was assuming renderToString, rather than renderToStringAsync, as there wasn't any mention of method (well, other than the code block showing async's internals)
The type of
dangerouslySetInnerHTML
is:However, when setting
dangerouslySetInnerHTML
toundefined
I hit this code here:preact-render-to-string/src/index.js
Lines 122 to 135 in c8e54a1
Here
element
isundefined
and I getCannot read properties of undefined (reading 'then')
.Using
typeof element?.then === 'function'
seems to fix it for me.The text was updated successfully, but these errors were encountered: