How to handle Loading/Error - SolidJS