Describe the bug
Universal Renderer's cleanup method (the return value of render function) doesn't remove the existing node, which is inconvenient for using HMR.
Your Example Website or App
https://stackblitz.com/edit/solidjs-templates-ycgqgq?file=src%2Findex.tsx
Steps to Reproduce the Bug or Issue
- See the rendered result.
Expected behavior
I ran the cleanup method and I expected the node to be removed.
Screenshots or Videos

Platform
- OS: Windows 11
- Browser: Firefox
- Version: 115
Additional context
I am using solid-js for Firefox XUL, non-standard HTML, for developing a custom browser.
While I making HMR using Vite, I encountered the problem.
Thank you for the good project!
Describe the bug
Universal Renderer's cleanup method (the return value of
renderfunction) doesn't remove the existing node, which is inconvenient for using HMR.Your Example Website or App
https://stackblitz.com/edit/solidjs-templates-ycgqgq?file=src%2Findex.tsx
Steps to Reproduce the Bug or Issue
Expected behavior
I ran the cleanup method and I expected the node to be removed.
Screenshots or Videos
Platform
Additional context
I am using solid-js for Firefox XUL, non-standard HTML, for developing a custom browser.
While I making HMR using Vite, I encountered the problem.
Thank you for the good project!