Subham
Subham
SSolidJS
Created by Subham on 12/17/2024 in #support
Dynamic meta <Title> not updated on routes Solid-start SSR: false
app.config.js import { defineConfig } from "@solidjs/start/config"; export default defineConfig({ ssr: false, server: { preset: "cloudflare_pages" }, }); i searched on chatgpt about my issue as a response The issue you're facing arises because you have disabled Server-Side Rendering (SSR) in your app.config.js with the ssr: false setting. SolidStart uses SSR to inject the meta tags dynamically into the HTML when the server renders a page. By disabling SSR, the meta tags defined in individual components like About.jsx are not rendered at the server level and thus don't appear in the page's initial HTML. i got this... so now how can i fix this problem ? It would be great if there was a more seamless way to ensure that client-only code is either automatically deferred or conditionally executed, without requiring manual checks with onMount or isServer. Is there a recommended approach or potential solution to address this issue more effectively in SolidJS, especially when working with components that require SSR but also need to handle client-specific logic?
7 replies