autumncicada
autumncicada
Explore posts from servers
SSolidJS
Created by autumncicada on 7/16/2023 in #support
Are there any performance implications with using the style prop?
As the title says I'm wondering if there are any performance implications with using the style prop. For example: Can it result in flashing as styles are rendered?
2 replies
SSolidJS
Created by autumncicada on 7/13/2023 in #support
If I'm using createResource, why would I use Suspense?
For example if I have
function Loader() {
const [resource] = createResource(fetchResourceFn);
return <Suspense fallback={<div>Loading....</div>}>
<ResourceRenderer resource={resource()} />
</Suspense>;
}
function Loader() {
const [resource] = createResource(fetchResourceFn);
return <Suspense fallback={<div>Loading....</div>}>
<ResourceRenderer resource={resource()} />
</Suspense>;
}
This doesn't pass typescript type checking because you still need to check if resource() is undefined or not, even though Suspense shouldn't render the ResourceRenderer until createResource is finished with its async request?
8 replies
SSolidJS
Created by autumncicada on 7/6/2023 in #support
Difficulties using Pdfjs-dist with SolidStart
I'm trying to use Pdfjs-dist with SolidStart. It works in developer mode but when I try to create a production build it fails with the error in the build-err.txt file I've attached. I've also attached the PdfViewer component code and the route I'm loading the PdfViewer into. I'm already using unstable_clientOnly to load in the module.
4 replies