vorph
vorph
SSolidJS
Created by vorph on 5/27/2024 in #support
Suspense overlay
FYI, I ended up wrapping createResource with a function that automatically creates an effect which in turn updates a separate store/context to achieve the desired result based on resource's .loading property. A loading indicator is shown based on that store value instead of using Suspense.
8 replies
SSolidJS
Created by vorph on 5/27/2024 in #support
Suspense overlay
Thanks for the pointers, I'll look into those
8 replies
SSolidJS
Created by vorph on 5/27/2024 in #support
Suspense overlay
They mostly could, though in some cases we want to swap some content in-place while showing a loading indicator and the previous version of the resource (think swapping image resolutions after depending on the zoom level etc.) - It would be nice to have a single Suspense handle that higher in the component tree and not have to handle each case manually
8 replies