We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The type of dangerouslySetInnerHTML is:
dangerouslySetInnerHTML
dangerouslySetInnerHTML?: { __html: string; };
However, when setting dangerouslySetInnerHTML to undefined I hit this code here:
undefined
preact-render-to-string/src/index.js
Lines 122 to 135 in c8e54a1
Here element is undefined and I get Cannot read properties of undefined (reading 'then').
element
Cannot read properties of undefined (reading 'then')
Using typeof element?.then === 'function' seems to fix it for me.
typeof element?.then === 'function'
The text was updated successfully, but these errors were encountered:
I'm not able to reproduce the described error on my end. Are you on the latest version? Can you share a snippet that reproduces the error for you?
Sorry, something went wrong.
Oh, sorry about that. I was hitting this via Astro's Preact package and it seemed to come from this changeset: withastro/astro#11464
I'll see if I can work out what is going on when I get a chance.
No branches or pull requests
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: