S
SolidJS•8mo ago
James

@solidjs/start @solidjs/meta not being SSR'd when resources used, bug or my misuse?

See: https://codesandbox.io/p/devbox/clever-leaf-r4xrg6?file=%2Fsrc%2Froutes%2Fabout.tsx The <title> works fine on the About page, but if you view the HTML document the server provides, it is missing the <title> - it is only added by the client. Everything else renders fine! Cheers!
3 Replies
James
JamesOP•8mo ago
Actually it appears to render the title in SSR for the first page load after the server starts, but not subsequent requests, so I'm guessing bug... next question, how can I work around this? 😅
peerreynders
peerreynders•8mo ago
Not a bug; intended behaviour as responses stream by default. You want { deferStream: true } in the ResourceOptions.
James
JamesOP•8mo ago
legend!! thank you @peerreynders <3

Did you find this page helpful?