Waqas Tahir
How to defer rendering a component on server side in solidjs
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
3 replies
Undocumented Hook useAssets ?
Okay I setup a solid-start example that works
https://stackblitz.com/edit/solid-ssr-vite-ke7ixp?file=src%2Froutes%2Findex.tsx
36 replies
Undocumented Hook useAssets ?
createRenderEffect(() => {
console.log("the render efffect is here")
useAssets(() => {
console.log("the use assets hook is here")
return <style id={elemId} nonce={context.cache?.nonce}>{
.${className}{${rulesString}}
}</style>
})
})36 replies
Undocumented Hook useAssets ?
In SUID its written like this
https://github.com/swordev/suid/blob/main/packages/styled-engine/src/createStyle.tsx#L81
I am trying to do something like that, That works though
36 replies