SolidJSS
SolidJSโ€ข3y ago
ry

Using `createResource` without triggering suspense

I'm trying to use
createResource
without triggering Suspense. I realised that data.latest still triggers suspense on first fetch, but providing an initialValue to the resource seems to prevent this.

Is this reliable behaviour to rely on?

https://playground.solidjs.com/anonymous/25b3cb5c-54b4-4be5-85c1-531ddf2e369c
Quickly discover what the solid compiler will generate from your JSX template
Was this page helpful?