Await a resource inside a function? - SolidJS