vorph
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
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 manually8 replies