AK
AK
SSolidJS
Created by AK on 3/11/2025 in #support
SSG / Partial Hydration
Hello all, I am doing SSG without SolidStart and it works for the most part, but I can't get on click to work on a button. My current flow is: I am using --ssr to build via entry-server, which renderToStrings the Landing page. The Landing Page has a placeholder div. Using entry server, I am also injecting my generateHydrationScript script, and remaining js, including entry-client. Using the entry-client, I hydrate the component into the div and it renders, however, when I click it, nothnig happens. I expected it to log to console. No errors from hydration either. Are there any sample projects or detailed articles I can look at on the topic? I am currently stuck and don't really have any directions.
21 replies