How to better handle resource errors when component is instantiated outside of the render function? - SolidJS