[BUG] Adding a space in front of html causes toReactElement()
to keep previous html in memory
#9
Labels
bug
Something isn't working
This was originally a problem I faced in
@ethercorps/sveltekit-og
but I have found that thetoReactElement()
is where problems where cropping up.If you run
toReactElement('<h1>Test 1</h1>')
again it keeps test 2 in memoryI patched this myself by moving the
root
const inside the function, but you may have a better solution of how to fix this. You could also trim the HTML string passed to parse maybe?The text was updated successfully, but these errors were encountered: