duk
How to handle Loading/Error
if you are using createAsync (I suppose with cache) you should use Suspense and ErrorBoundary to handle loading and error states, because createAsync only turns a Promise into a Signal, it doesn't offer the ResourceReturn type like createResource.
2 replies
Getting the full domain/url server side
Server side you can try
getRequestEvent
and checking if the Host
header is forwarded with the request
https://docs.solidjs.com/reference/server-utilities/get-request-event11 replies
No Context when using hyper dom expressions
Hi, don't know if you've already solved the error but I updated your solidjs/h version to match solidjs 1.8.16 in the importmap and replaced
with in
which seems to fix it.
Here is your updated codepen: https://codepen.io/davidivkovic/pen/MWRBJeR
4 replies