How to defer rendering a component on server side in solidjs

I am using astro with solidjs, How can I defer rendering a component I know that there's lazy but it doesn't work server side, meaning I need to defer rendering at server side and then display something when it has loaded,
2 Replies
Waqas Tahir
Waqas TahirOP14mo ago
While Suspense delivers a fallback and the code is run on the browser My only requirement is that all code is run on the server until the resource is ready then I deliver THE JSX
lxsmnsyc
lxsmnsyc14mo ago
Suspense + createResource would allow you that however Astro only does sync SSR, so these things won't work at all
Want results from more Discord servers?
Add your server