SolidJSS
SolidJSโ€ข2y agoโ€ข
1 reply
TutoDS

Image optimization & createAsync saying that can be null

Hi everyone
I have two questions:
- I need to create a image componente that at the begin loads a small and blurred image, but after the load completes show the full quality image. I try an example using IntersectionObserver, but at the begining the image doesn't appear.
- The second one is with
createAsync
where:
const getAvailableServices = cache(async (): Promise<GetAvailableServicesQueryResult>


When I'm using the type is GetAvailableServicesQueryResult | undefined
Any idea?
image.png
Was this page helpful?