S
SolidJS•4d 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
James•4d 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•4d ago
Not a bug; intended behaviour as responses stream by default. You want { deferStream: true } in the ResourceOptions.
James
James•4d ago
legend!! thank you @peerreynders <3